I am working with a HTML application with Python. I usually use the %
sign to indicate that I'm using a Python element, and never had a problem with that before.
Now, I am using some tables which I'm trying to control their size bye the percentage using the %
sign. So now the Python does not show the Python elements.
Here is some code to explain myself:
<table width="90%">
<tr>
<td width="60%">HELLO</td>
<td width="40%">GOOD BYE</td>
</tr>
</table>
<input type="button" value="BUTTON" onclick="function(%s)" /> ''' % variable
The error that I am having says
unsupported format character '"' (0x22) at index 19"
making reference to the %s
string in the onclick=function(%s)
Does someone know if the %
sign in the tables affects Python or something like that?