Helma logo
helma.org » Home > Stories > res.format()

res.format()

Writes a string as smooth HTML to the output buffer.

This function outputs a string after substituting special characters in a string with their equivalent HTML entities but keeping markup tags as is and also tries to avoid <br /> tags where ever possible (e.g. in table structures).

Syntax
res.format(String)

Example
res.format("<table>\n<tr><td>Bananer växer\n minsann inte på träd.</td></tr>\n</table>");
<table>
<tr><td>Bananer v&auml;xer
<br />
minsann inte p&aring; tr&auml;d.</td></tr>
</table>


... comment


Page last modified on 2003-08-24 14:39 by rist