fn: ent
[contents]

Contents

Syntax

The syntax for ent calls is:

f++:  
ent(string)

n++:  
@ent(string)

Description

The ent function is for getting html entities (other types of entities will be supported in the future), it takes a single string parameter to specify which entity to return.

The entities currently available with Nift are in the table below:

syntax output rendered
ent('\`') ` `
ent('~') ˜ ˜
ent('!') ! !
ent('\@') or ent(@) @ @
ent('#') # #
ent('$') $ $
ent('%') % %
ent('^') ^ ^
ent('&') & &
ent('*') * *
ent('?') ? ?
ent('<') &lt; <
ent('>') &gt; >
ent('(') &lpar; (
ent(')') &rpar; )
ent('[') &lbrack; [
ent(']') &rbrack; ]
ent('{') &lbrace; {
ent('}') &rbrace; }
ent('-') &minus;
ent('_') &lowbar; _
ent('=') &equals; =
ent('+') &plus; +
ent('|') &vert; |
ent('\\') or ent(\) &bsol; \
ent('/') &sol; /
ent(';') &semi; ;
ent(':') &colon; :
ent('\'') &apos; '
ent('"') &quot; "
ent(',') &comma; ,
ent('.') &period; .
ent('£') &pound; £
ent('¥') &yen; ¥
ent('€') &euro;
ent("section") &sect; §
ent("+-") &pm; ±
ent("-+") &mp;
ent("!=") &ne;
ent("<=") &leq;
ent(">=") &geq;
ent("->") &rarr;
ent("<-") &larr;
ent("<->") &harr;
ent("==>") &rArr;
ent("<==") &lArr;
ent("<==>") &hArr;
ent("<=!=>") &nhArr;
ent("...") &hellip;
syntax output rendered

f++ example

Example of ent being used with f++:

ent('!')
ent("<=")
ent("...")

n++ example

Example of ent being used with n++:

@ent('!')
@ent("<=")
@ent("...")

Sponsors