Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent escape html tag when create a new posts #37

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

yillkid
Copy link
Contributor

@yillkid yillkid commented Jun 11, 2016

We do not need escape html tag when create a new posts because that will break html syntax in the post field (or in the WYSIWYG editor in the future).

if (sqlite3_bind_int(statement, 1, t) != SQLITE_OK) goto fail;
if (sqlite3_bind_int(statement, 2, authorId) != SQLITE_OK) goto fail;
if (sqlite3_bind_text(statement, 3, escapedBody, -1, NULL) != SQLITE_OK)
if (sqlite3_bind_text(statement, 3, body, -1, NULL) != SQLITE_OK)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it really make sense?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants