htmlwriter

From Free Pascal wiki
Jump to navigationJump to search

Implements a verified HTML producer.

  • THTMLwriter: This is a class which allows to write certified correct HTML. It works using the DOM for HTML. It also has forms support.

Writing HTML is done as follows:

 StartBold;
 Write('This text is bold');
 EndBold;
or
 Bold('This text is bold');

But the following is also possible

 Bold(Center('Bold centered text'));

Open tags will be closed automatically. wtagsintf.inc contains all possible tags.

Back to fcl-xml overview.