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
  • Loading branch information...
1 parent 01eed07 commit 0b8659f7cd4e0c3e893ad0bb11d3268171b48607 @MitchellMcKenna committed Jun 9, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 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.