Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Truncate sanitizer #163
Short description of the enhancement
Current vs. suggested behavior
Maybe the sanitizer class isn't the right place for it - maybe just a public function:
Why would the enhancement be useful to users?
I think this is a very common need and it would be nicer than using our own versions.
Optional: Screenshots/Links that demonstrate the enhancement
I think you could make use of this function:
It would be nice if it could take html tags into account, but using strip_tags is also better than nothing.
In my Latte module I'm using this code, perhaps it can help too: