Commit daa6a02
committed
fix: encode after truncating to avoid splitting HTML entities (wh-etb.2)
left(encodeForHTML(x), 100) could split an HTML entity like & into
&am, producing malformed output. Reversed to encodeForHTML(left(x, 100))
so truncation happens on raw text before encoding.1 parent b18a284 commit daa6a02
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
205 | 205 | | |
206 | 206 | | |
207 | 207 | | |
208 | | - | |
| 208 | + | |
209 | 209 | | |
210 | | - | |
| 210 | + | |
211 | 211 | | |
212 | 212 | | |
213 | 213 | | |
| |||
0 commit comments