threedaymonk / htmlbeautifier

A normaliser/beautifier for HTML that also understands embedded Ruby. Ideal for tidying up Rails templates.
MIT License
325 stars 59 forks source link

Escaping characters? #31

Closed extractachris closed 8 years ago

extractachris commented 8 years ago

Is there a method to escape certain characters or hide a string from HTML Beautifier?

I am using the Fancybox plugin, and this bit of HTML returns undefined local variable or method 'match' in HTML Beautifier:

<button href="/" data-fancybox-type="iframe" title="My Link Copy :: <a href='http://www.website.com'>Launch website</a>">

It's the < and the > causing the problem. If I change them to HTML character entities, the link is not generated in Fancybox.