0
Both Pyqt4 and Pyqt5 can interpret HTML entities.
I have a place where the text is displayed in HTML format. However at the time of sending a text made by a certain QLineEdit
, I need this text to be escaped, so that HTML tags are converted to certain entities, so that it is not interpreted.
Example:
#Quero escapar esse valor
text = self.textChat.text()
formattedText = self._buildChatText(message)
How do I escape an HTML from a text in a QLineEdit
?