Don't covert entities in certain cases
Open
@dpp is already working on this.
Since Nov 26, 2012.
- Dominant language
- Scala
- Stars
- 1.3k
- Forks
- 275
- PR merge metrics
- No merged PRs in 30d
Description
When the "don't convert entity" flag is passed to the Html5 writer... don't convert entities:
```
case er: EntityRef if convertAmp =>
HtmlEntities.entMap.get(er.entityName) match {
case Some(chr) if chr.toInt >= 128 => writer.append(chr)
case _ => {
val sb = new StringBuilder()
er.buildString(sb)
writer.append(sb)
}
}
case er: EntityRef =>
val sb = new StringBuilder()
er.buildString(sb)
writer.append(sb)
```
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.