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)
When the "don't convert entity" flag is passed to the Html5 writer... don't convert entities: