Description
This property replaces all occurrences of a certain string with another string in the content of the element. The property accepts pairs of strings as value, in addition to the initial ‘none’ value. For each pair of strings, occurrences of the first string in the content will be replaced with the second string. If ‘none’ is specified, no replacements will occur.
Syntax
text-replace: [value1] [value2] ...
Possible values
- none
- [string]
Initial Value
none
Applies To
All elements
Inherited
Yes
Media
Visual
Example
body {
text-replace: "Hello" "Goodbye";
}
