Feature request: Allow disabling htmlEscape in the toHTML function #20934
flortsch
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is your feature request related to a problem?
I am currently using the JavaScript API of FontAwesome in a static site generator (Eleventy), where I have defined a custom shortcode in Nunjucks for emitting FontAwesome SVGs. The shortcode implementation uses the html attribute of an icon, which is an escaped HTML string. In specific cases, this is problematic and the escaped HTML string does not allow further tools in the build pipeline to process the output string. E.g., I am setting an Alpine.js x-bind:class attribute with Tailwind classes, but as the string gets escaped, Tailwind does not pick up the referenced class names.
Feature description
Allow disabling htmlEscape in the toHTML function (via a variable or config setting).
Alternatives
No response
Additional context
No response
Feature request checklist
Beta Was this translation helpful? Give feedback.
All reactions