- Issue created by @ressa
- Status changed to Closed: duplicate
over 2 years ago 8:01pm 22 February 2023 - 🇩🇰Denmark ressa Copenhagen
Added in 📌 Fixes to README Fixed , so closing this issue.
I wanted to use this great module in a custom module, but wasn't sure how to. So I looked in the code for clues ...
But then it dawned on me to simply use the feature of the module as "intended", as a filter. After that, it was easy as:
plain_text
)plain_text
format, using the code below$raw_string = "A string to remove some bad words from";
$cleaned_text = [
'#type' => 'processed_text',
'#text' => $raw_string,
'#format' => 'plain_text',
];
Try to figure out how to use Wordfilter in a custom module, and not finding documentation on it.
Add the simple example above in README.md?
Closed: duplicate
2.0
Documentation
Added in 📌 Fixes to README Fixed , so closing this issue.