The oxy_getSomeText(text, length) Function
The oxy_getSomeText(text, length) function allows you to truncate a
long string and to set a maximum number of displayed characters.
The following properties are supported:
- text - displays the actual text
- length - sets the maximum number of characters that are
displayed
- endsWithPoints - specifies whether the truncated text ends with
ellipsis
If an attribute value is very large we can trim its content before it is displayed as
static
content:
*[longdesc]:before{
content: oxy_getSomeText(attr(longdesc), 200);
}