how to not render the html text in paragraph

8 views
Skip to first unread message

Rishabh Bhardwaj

unread,
Aug 2, 2022, 3:48:48 AM8/2/22
to reportlab-users

hello there,

is there any option for not to render html content in the Paragraph in reportlab.

for eg:-

limit_deb=0&limit_fin=400&nb_resultat=400&page=0&block=&word1=%22%3E%3Cscript%3Ealert(document.cookie);%3C/script%3E | Payload: %22%3E%3Cscript%3Ealert(document.cookie);%3C/script%3E

this string i want to print as html in Paragraph , but when i put it in Paragraph class like this shown below, it is showing black dot.  

issue_val = "limit_deb=0&limit_fin=400&nb_resultat=400&page=0&block=&word1=%22%3E%3Cscript%3Ealert(document.cookie);%3C/script%3E | Payload: %22%3E%3Cscript%3Ealert(document.cookie);%3C/script%3E"

Paragraph(issue_val, styles["BodyText"])

is there any option for escape rendering the html paragraph text and just show only the text which is written in it.

thanks and regards
rishabh
 



Screenshot from 2022-08-02 13-14-21.png

Reply all
Reply to author
Forward
0 new messages