P web

Purpose: Outputs a web-encoded string.

 p-web <string> [ length <length> ] [ new-line ]

p-web is the same as p-out, except that the output is web-encoded (or HTML-encoded). This means such output is suited for use in web pages - the text will be displayed verbatim without HTML-markup being interpreted.

If "length" clause is used, then only <length> leading bytes of <string> are web-encoded and then output.

If "new-line" clause is used, then a new line ("\n") is output after encoded <string>.
Examples
Display "We use <hr/> markup" text, without "<hr/>" being displayed as a horizontal line:
 p-web "We use <hr/> markup"

See p-out for more examples.
See also
Output
finish-output  
flush-output  
output-statement  
pf-out  
pf-url  
pf-web  
p-num  
p-out  
p-path  
p-source-file  
p-source-line  
p-url  
p-web  
See all
documentation


Copyright (c) 2019-2024 Gliim LLC. All contents on this web site is "AS IS" without warranties or guarantees of any kind.