P
Priyank Shah
Hi,
I read some html source and remove all tags and just take the contents.
So when i see that contents in ruby output it shows me unknown charaters
like
"-á" and it shows inplace <strong>hello </strong> so it shows like
"hello-á" and reason is space before </strong> tag.
so if any one have idea using regex or any thing for remove this space
from tag
or this charater then please give me some ideas.
Ex:
Original Html:
<strong>Hello </strong>
After remove Html tags in ruby :
hello-á
Thanks,
Priyank Shah
I read some html source and remove all tags and just take the contents.
So when i see that contents in ruby output it shows me unknown charaters
like
"-á" and it shows inplace <strong>hello </strong> so it shows like
"hello-á" and reason is space before </strong> tag.
so if any one have idea using regex or any thing for remove this space
from tag
or this charater then please give me some ideas.
Ex:
Original Html:
<strong>Hello </strong>
After remove Html tags in ruby :
hello-á
Thanks,
Priyank Shah