put content

Typecommand
DictionaryLCS
LibraryLiveCode Script
Syntax
put [ unicode ] content <string>
Summary

Write the given (unicode) string to stdout, processing it for suitable output in an SGML content context.

Introduced4.6.3
OSmac, windows, linux
Platformsserver
Parameters
NameTypeDescription
string

A string containing the HTML markup to output. If 'unicode' is not specified, then string is considered to be in the native text encoding for the platform. If unicode is specified, then string is considered to be in UTF-16.

Example
put content "<p>foobar</p>"
put unicode content uniEncode(tMyUTF8Markup, "UTF8")
# uniEncode() converts tMyUTF8Markup to UTF-16
RelatedCommand: put header, put, put markup, put text, put binary
Keyword: after, before
Description

Use the put content command to write a string to stdout that contains HTML markup. This functions identically to 'put markup' except that '<', '>', '&' and '"' are encoded as named entities - <, >, & and ".

Tagstext processing