HerikLyma / CPPWebFramework

​The C++ Web Framework (CWF) is a MVC web framework, Open Source, under MIT License, using C++ with Qt to be used in the development of web applications.
MIT License
447 stars 119 forks source link

How can I achieve html sanitization using CPPWebFramework? #23

Closed shujaatak closed 5 years ago

shujaatak commented 5 years ago

As I have searched the html sanitization feature in CPPWebFramework but I did not find so I wonder how can I achieve this? Can you please give me some hints or point me to some library or tutorials?

HerikLyma commented 5 years ago

Hello my friend.

Well, against SQL injection, for example, you can use QSqlQuery::prepare and QSqlQuery::bindValue to avoid SQL injection.

Thank you very much. Herik Lima