Edit online

Get Text: oxy_getSomeText(text, length) Function

This function allows you to truncate a long string and to set a maximum number of displayed characters.

Syntax:
oxy_getSomeText ( text , length , endsWithPoints )
text
Displays the actual text.
length
Sets the maximum number of characters that are displayed.
endsWithPoints
Specifies if the truncated text ends with ellipsis.

Example: oxy_getSomeText Function

If an attribute value is very large, you can trim its content before it is displayed as static content:
*[longdesc]:before{
  content: oxy_getSomeText(attr(longdesc), 200);
}