I have this string input from a HTML file:
<h1> Hello world </h1>
I want to count number of word and character of this file (not include HTML element)
For example:
Input
<h1>Hello</h1>\n<h1>Hello</h1>
Output
Characters : 10
Word : 2
I believe there will be a step we parse this HTML content first. But I dont know which package support that.