How to work inline css in codeigniter?

some situation to set inline styles to element on the page using html inputs,project is developed using CodeIgniter framework , for security reasons I had enabled XSS filtering Globally in application/config/config.php

$config['global_xss_filtering'] = TRUE;

First you enable $config['global_xss_filtering'] = TRUE; in config file. then inline css work properly.

Because of XSS Filtering inline Styles not worked, To overcome this situation i had manually disabled XSS Filtering.

$content= $this->input('content', FALSE);
The above line will override default config option (at config.php).





Previous Next


Trending Tutorials




Review & Rating

0.0 / 5

0 Review

5
(0)

4
(0)

3
(0)

2
(0)

1
(0)

Write Review Here