I want to create a description of the post. This description is taken from the content of the post, which may include html tags but I want not to include the html tags like <html>, <script> and so on.
For example:
I have some content as follows:
<html>ajsdhasudhasidyuai</html>
and I want to get the first 2 characters and without the <html> tag, so the result should be
aj
How can I achieve that?