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

How to filter html tags on rendering. #457

Open
fakirpic opened this issue Aug 11, 2018 · 1 comment
Open

How to filter html tags on rendering. #457

fakirpic opened this issue Aug 11, 2018 · 1 comment

Comments

@fakirpic
Copy link

fakirpic commented Aug 11, 2018

Hi i am inserting data with another application that allows html tags, but i dont want they get rendered as h tml in grocery-crud

public function datas()
{
$crud = new grocery_CRUD();
$crud->unset_add();

$crud->set_table('datas');
$output = $crud->render();
 
$this->_example_output($output);        
}

this is my basic rendering func. also i enabled
$config['grocery_crud_xss_clean'] = true;
in application\config\grocery_crud.php

@jasteele12
Copy link

Are you looking for PHP's strip_tags() function?

http://php.net/strip_tags

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

No branches or pull requests

2 participants