Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Awk > translate html ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 6 Topic 2219 of 2241
Post > Topic >>

translate html codes to ascii chars

by tomekl <tomek@[EMAIL PROTECTED] > Apr 9, 2008 at 02:01 AM

Hello!

I need to replace html codes with ascii chars, so for

'&#73;&#74;aaaa&#75;'

output should be:

'IJaaaaK'

Could you help with this ? What I have so far is this...

echo '&#73;&#74;aaaa&#75;' | awk '{ print (gensub("&#([0-9]+);","\
\1","g")) }'




 6 Posts in Topic:
translate html codes to ascii chars
tomekl <tomek@[EMAIL P  2008-04-09 02:01:40 
Re: translate html codes to ascii chars
pk <pk@[EMAIL PROTECTE  2008-04-09 11:37:59 
Re: translate html codes to ascii chars
tomekl <tomek@[EMAIL P  2008-04-09 02:45:41 
Re: translate html codes to ascii chars
pk <pk@[EMAIL PROTECTE  2008-04-09 12:23:53 
Re: translate html codes to ascii chars
spcecdt@[EMAIL PROTECTED]  2008-04-09 13:36:26 
Re: translate html codes to ascii chars
tomekl <tomek@[EMAIL P  2008-04-11 02:29:23 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat May 17 14:06:19 CDT 2008.