Patent ID: 8402366

Claim:
A method of formatting content with hyper text markup language (HTML) code, the method comprising: receiving content having the HTML code with format tags; segmenting the content into a plurality of text records; and sequentially parsing the content to create a plurality of format tag stacks, wherein each format tag stack is associated with one of the plurality of text records, the sequentially parsing including: identifying the format tags in the HTML code; for each format tag identified: adding the format tag to one of the plurality of format tag stacks when the format tag is opened; removing the format tag from one of the plurality of format tag stacks when the format tag is closed; and storing the plurality of format tag stacks with the plurality of text records, wherein each format tag stack provides active format tags of the content up to a corresponding restore point in the HTML code, the format tag being active when the tag is opened and not yet closed for the corresponding restore point.