Automattic / juice

Juice inlines CSS stylesheets into your HTML source.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Trailing slash is removed from <link> and <meta> tag

zecka opened this issue · comments

commented

Hi,

All trailing slash is removed from <link> and <meta> html tag

For example:

Input

<link href="/style.css" rel="stylesheet"/>

Output

<link href="/style.css" rel="stylesheet">

Working example:
https://runkit.com/zecka/5ff466f80e1f5e001b660ffb

So how to keep trailing slash on tag ?

At the moment i fixed the issu by using a custom function to add trailing slash after juice process:
https://stackoverflow.com/questions/6628019/string-processing-to-add-trailing-slash-to-self-closing-tags-img-br-etc