Skip to main content

put content

Type​

command

Summary​

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

Syntax​

put [ unicode ] content <string>

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 ".

Parameters​

NameTypeDescription

string

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.

Examples​

put content "&lt;p&gt;foobar&lt;/p&gt;"
put unicode content uniEncode(tMyUTF8Markup, "UTF8")
# uniEncode() converts tMyUTF8Markup to UTF-16

command: put header, put, put markup, put text, put binary

keyword: after, before

Compatibility and Support​

Introduced

LiveCode 4.6.3

OS

mac

windows

linux

Platforms

server

Thank you for your feedback!

Was this page helpful?