Relative Content

Tag Archive for parsing

What the correct algorithm to invert italics in a mixed text?

The question motivations was depicted in the section below.
There are many ways to make text italic,
so, perhaps, there are more than one good
swap italics algorithm“.
The problem reveals some aditional
dificulties in a XHTML code, and using the <i> tag, that must to be balanced.
Example: