Try to escape the code with the two points as follows:

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


Or use:

$code: 

      def strings():

            string = "Lots of parents react angrily to such a shock." 

            string =  string.replace('react','<span style="text-decoration:
> underline;"> react </span>') 

            return string

 <td> $:strings() </td> 


And in both cases returns:

Lots of parents *react* angrily to such a shock.

Remember to use *$:*

-- 
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 [email protected].
To post to this group, send email to [email protected].
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