HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
The truncatechars_html
filter truncate the value
if it is longer than the specified number of characters.
The truncatechars_html
filter will not count any HTML tags,
but closes tags that are being started but not ended.
If a value gets truncated, the value will add three dots (...) at the end of the string.
See also:
{{ value|truncatechars_html:number }}
Template filters are defined by using a pipe |
character followed by the name of the filter.
Arguments are defined by using a colon :
character followed by the argument value.
Value | Description |
---|---|
number | Required. A number specifiying how many characters are allowed. |