websh/quickref/uri-html-_en-decoding.html (36 lines of code) (raw):
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Uri-/html- en-/decoding</title><meta name="generator" content="DocBook XSL Stylesheets V1.75.1"><link rel="home" href="index.html" title="Websh Reference 3.6.0b5"><link rel="up" href="index.html" title="Websh Reference 3.6.0b5"><link rel="prev" href="data_encryption.html" title="Data encryption"><link rel="next" href="inter-process_and_-system_communication.html" title="Inter-process/-system communication"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Uri-/html- en-/decoding</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="data_encryption.html">Prev</a>�</td><th width="60%" align="center">�</th><td width="20%" align="right">�<a accesskey="n" href="inter-process_and_-system_communication.html">Next</a></td></tr></table><hr></div><div class="section" title="Uri-/html- en-/decoding"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="uri-html-_en-decoding"></a>Uri-/html- en-/decoding</h2></div></div></div><div class="section" title="web::htmlify"><div class="titlepage"><div><div><h3 class="title"><a name="web::htmlify"></a><span style="font-family:monospace"><span class="command"><strong>web::htmlify</strong></span></span></h3></div></div></div><p style="width:90%">
</p><div class="cmdsynopsis"><span style="background:#bbbbff"><span style="font-weight:bold"><code class="command">web::htmlify</code></span> ?-options? <em class="replaceable"><code>text</code></em></span></div><p style="width:90%">
</p><p style="width:90%">
Options: <tt>-numeric</tt>.
</p><p style="width:90%">
Returns HTML-compliant <tt>text</tt> with HTML
encoded entities in mnemonic form (e.g. &auml;) or in numeric
form (e.g. &#228;) if the option <tt>-numeric</tt>
is specified. Multibyte characters are encoded as
&#<numeric>;.
</p></div><div class="section" title="web::dehtmlify"><div class="titlepage"><div><div><h3 class="title"><a name="web::dehtmlify"></a><span style="font-family:monospace"><span class="command"><strong>web::dehtmlify</strong></span></span></h3></div></div></div><p style="width:90%">
</p><div class="cmdsynopsis"><span style="background:#bbbbff"><span style="font-weight:bold"><code class="command">web::dehtmlify</code></span> <em class="replaceable"><code>text</code></em></span></div><p style="width:90%">
</p><p style="width:90%">
Removes all HTML-tags from <tt>text</tt> and translates
all HTML entities to their corresponding characters (also
handles encoded multibyte characters encoded with
&#<numeric>;).
</p></div><div class="section" title="web::uriencode"><div class="titlepage"><div><div><h3 class="title"><a name="web::uriencode"></a><span style="font-family:monospace"><span class="command"><strong>web::uriencode</strong></span></span></h3></div></div></div><p style="width:90%">
</p><div class="cmdsynopsis"><span style="background:#bbbbff"><span style="font-weight:bold"><code class="command">web::uriencode</code></span> <em class="replaceable"><code>text</code></em></span></div><p style="width:90%">
</p><p style="width:90%">
Returns URI-compliant <tt>text</tt>.
</p></div><div class="section" title="web::uridecode"><div class="titlepage"><div><div><h3 class="title"><a name="web::uridecode"></a><span style="font-family:monospace"><span class="command"><strong>web::uridecode</strong></span></span></h3></div></div></div><p style="width:90%">
</p><div class="cmdsynopsis"><span style="background:#bbbbff"><span style="font-weight:bold"><code class="command">web::uridecode</code></span> <em class="replaceable"><code>text</code></em></span></div><p style="width:90%">
</p><p style="width:90%">Decodes URI-compliant <tt>text</tt>.
</p><div class="example"><a name="id2742101"></a><p class="title"><b>Example�16.�<span style="font-family:monospace"><span class="command">web::htmlify</span></span></b></p><div class="example-contents"><pre style="background:#bbffbb ; width:75%" class="programlisting">
% web::htmlify <
&lt;
% web::htmlify -numeric <
&#60;
% web::dehtmlify "&lt; &#60;"
< <
% web::uriencode "Hello, world!"
Hello%2c+world%21
% web::uridecode "Hello%2c+world%21"
Hello, world!
% </pre></div></div><br class="example-break"></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="data_encryption.html">Prev</a>�</td><td width="20%" align="center">�</td><td width="40%" align="right">�<a accesskey="n" href="inter-process_and_-system_communication.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Data encryption�</td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top">�Inter-process/-system communication</td></tr></table></div></body></html>