Skip to content

Commit 2c0b320

Browse files
committed
Update README.md
1 parent 10a5aed commit 2c0b320

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

README.md

+5
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,11 @@ The directive automatically escapes its content HTML entities by default. Can be
8888
</div>
8989
```
9090

91+
**Frequently Asked Question**
92+
93+
Since the code inside `hljs` will be parsed by browser even before AngularJS bootstraped, it sometimes demonstrates strange highlight result when the code you put inside `hljs` have HTML-tag-like syntax (`<blah>`).
94+
To deal with the issue, use `hljs-no-escape` option with manually escaped code or switch to `hljs-source` or `hljs-include` for highlighting.
95+
9196
#### hljs-source (optional)
9297
Type: `expression`
9398
Default: `undefined`

0 commit comments

Comments
 (0)