Hi all,

 I am trying to change a part of the string by appending a html tag to the 
string, but I am not able to achieve the desired output.

 $ string =  Lots of parents react angrily to such a shock.
 $ string = string.replace('react',*'<span 
style="text-decoration:underline;">* react *</span>*')
  <td> $string </td> 

 Output I am getting: 
 Lots of parents <span style="text-decoration:underline;">react</span> 
angrily to such a shock.

 Desired output:
  Lots of parents *react* angrily to such a shock.

 I tried appending various html tags unfortunately the tags were not 
working as in html.
 Let me know if I am doing anything wrong and if there is a solution to 
this please point me to that.
 
Thanks & Regards
Avinesh

-- 
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to webpy+unsubscr...@googlegroups.com.
To post to this group, send email to webpy@googlegroups.com.
Visit this group at http://groups.google.com/group/webpy?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to