-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stop adding ="" to valueless html attributes #60
Comments
Hi, I guess you already got the answer from highlightjs/highlight.js/issues/1058. What you actually need is preventing your hljs source or hljs include can do the trick. See #30 for the previous discussion. An example of solving it with <div hljs hljs-include="'the-foo-bar-source'"></div>
<script id="the-foo-bar-source" type="text/ng-template">
<foo bar></foo>
</script> |
Ahhh, gotcha. I think I was misunderstanding at what stage the attributes Chris On Wed, Feb 3, 2016 at 11:26 AM Chih-Hsuan Fan [email protected]
|
BTW, you can also prevent from browser parsing by manually escaping those code you put inside For example <div hljs hljs-no-escape>
<foo bar></foo>
</div> |
[See this discussion https://github.com/highlightjs/highlight.js/issues/1058]
How do I configure so that this:
<foo bar></foo>
...doesn't become this after it's ran through highlightjs:
<foo bar=""></foo>
The text was updated successfully, but these errors were encountered: