- 🇫🇷France prudloff Lille
I think there could be a valid concern here.
The description of the class does state that this should not be used in HTML contexts but the name of the method could imply that it could be used to transform HTML into harmless plain text.
I have seen this method misused in custom code.
I also would not be surprised if a Google search like "drupal convert HTML to plaintext" points users to this method.Maybe the description of the method could make it clearer that it is dangerous in HTML contexts?