-
-
Notifications
You must be signed in to change notification settings - Fork 5
Compression fails when using String.htmlSpecialChars() #10
Copy link
Copy link
Open
Description
Exception when using String.htmlSpecialChars on a Document
Probably fails because HtmlMin can't handled Encoded HTML 🤔
To Reproduce
Use String.htmlSpecialChars() to encode some HTML-Code like:
renderer = afx`
<code>{String.htmlSpecialChars('<Vendor.Project:Helper.Link ... />')}</code><br/>
`
Error
Exception #1 in line 1717 of .../Packages/Libraries/voku/html-min/src/voku/helper/HtmlMin.php: Warning: Attempt to read property "nodeValue" on null in .../Packages/Libraries/voku/html-min/src/voku/helper/HtmlMin.php line 1717
49 Neos\Flow\Error\ErrorHandler::handleError(2, "Attempt to read property "nodeValue" on null", ".../voku/html-min/src/voku/helper/HtmlMin.php", 1717)
48 voku\helper\HtmlMin::protectTagHelper(voku\helper\HtmlDomParser, "code")
47 voku\helper\HtmlMin::protectTags(voku\helper\HtmlDomParser)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels