Function
Purplemarkup_get_css_property
Declaration [src]
char*
purple_markup_get_css_property (
const gchar* style,
const gchar* opt
)
Description [src]
Returns a newly allocated string containing the value of the CSS property specified
in opt. The style
argument is expected to point to a HTML inline CSS.
The function will seek for the CSS property and return its value.
For example, purple_markup_get_css_property(“direction:rtl;color:#dc4d1b;”, “color”) would return “#dc4d1b”.
On error or if the requested property was not found, the function returns
NULL
.
Parameters
style |
const gchar* |
A string containing the inline CSS text. |
|
The data is owned by the caller of the function. | |
The value is a NUL terminated UTF-8 string. | |
opt |
const gchar* |
The requested CSS property. |
|
The data is owned by the caller of the function. | |
The value is a NUL terminated UTF-8 string. |