contents.gifindex.gif

pueblo00000000.gif xch_mode

This is an <img> tag field, used to indicate the format of the text in the stream. the parameter to xch_mode may be ‘text’, 'html', or ‘purehtml’.

<img xch_mode=text>
When this is sent by the world, HTML codes are ignored in the text.
<img xch_mode=html>
When this is sent by the world, Pueblo starts interpreting text sent by the world as HTML. Pueblo automatically converts "\r\n" (or just "\r" or "\n") to "<br>", which makes Pueblo-enhancing your server easier, but may not be the desired behavior. In particular, this can wreak havoc with server-based word-wrapping and with multi-line HTML tags like initialized <textarea> forms.
<img xch_mode=purehtml>
This mode is similar to 'xch_mode=html', except that Pueblo does not convert newlines into "<br>". This is the recommended way to begin an HTML block with Pueblo, since it will give the server finer-grained control of what the user sees.
Examples

<img xch_mode=purehtml>

<img xch_mode=text>

Also see

<xch_mudtext>