juice icon indicating copy to clipboard operation
juice copied to clipboard

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

Open zecka opened this issue 4 years ago • 0 comments

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

zecka avatar Jan 05 '21 13:01 zecka