I am working with an HTML application with Python. I usually use the % sign to indicate that I am using a Python element and have never had a problem with this before.
Now I use some tables, which I try to control with their sizes, until the percentage using the % sign. So now, Python does not display Python elements.
Here is the code I will 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 I am experiencing says
unsupported character '' '(0x22) with index 19 "
referring to line %s in onclick=function(%s)
Does anyone know if the % sign affects tables in Python or something like that?
source share