Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix Html Not Saving Properly When Editing Posts

- Fix: Removed xss_clean from saving post so that html is not escaped
  and saving html like embedding images/videos will work on the front
  end.
  • Loading branch information...
commit 0b8659f7cd4e0c3e893ad0bb11d3268171b48607 1 parent 01eed07
@MitchellMcKenna authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  application/controllers/admin/write.php
View
2  application/controllers/admin/write.php
@@ -78,7 +78,7 @@ function index()
if ($_POST) {
$this->form_validation->set_rules('title', 'Title', 'trim|required|xss_clean');
$this->form_validation->set_rules('date', 'Date', 'trim|xss_clean');
- $this->form_validation->set_rules('content', 'Content', 'trim|xss_clean');
+ $this->form_validation->set_rules('content', 'Content', 'trim');
$this->form_validation->set_rules('tags', 'Tags', 'trim|xss_clean');
$this->form_validation->set_error_delimiters('<div class="error">', '</div>');

0 comments on commit 0b8659f

Please sign in to comment.
Something went wrong with that request. Please try again.