======htmlspecialchars====== WMPRO, WMMINI FW >= 1.0 WMMEGA FW >= 2.0 Convert special characters for display in HTML ====Description==== string htmlspecialchars ( string $data ) Certain characters have special significance in HTML, and should be represented by HTML entities if they are to be displayed in a browser "as is." This function returns a string with these conversions made. ====Parameter==== $data: String to be formatted ====Return Values==== String with certain characters replaced. The translations performed are: ^CHARACTER^NAME^TRANSLATED (HTML ENTITY)^ |&|ampersand|''&''| |"|double quote|''"''| |'|single quote|'''''| |<|less than|''<''| |>|greater than|''>''| ====Examples==== Test" $send=htmlspecialchars($data); print($send); ?> The above example will set $send to the value ''<a href='test'>Test</a>'' and the browser will display: Test (Without conversion by [[htmlspecialchars]] the browser would instead display the hyperlink __Test__) ===Read the file index.cgi line by line and format the output for display on the browser screen===