SML (sml.tar.gz) is a concept browser, which gets its formatting and text information from different files. This means the webpage itself is split up to 4 files: 1. test.sml #formatting instructions: test.fmt #text information: test.txt #url information test.url 2. test.fmt s12 cn u1 i0 w50 l0 n s8 cb u0 i0 w50 l1 q0 l2 n 3. test.txt Alpacas are really great 4. test.url test2.sml Rendered webpage looks like this then: Alpacas are really great There are two main reasons to split up the webpage: 1. No more XSS: The text file is treated only as a textfile. It's not executed. You cannot hide XSS in a text, which is not executed at all. 2. Easier to parse: The example browser uses the stl string class (with boost) for the formatting file and QString (for unicode) for the text file. |