php - codeigniter append [removed] message while stripping tags -


i using codeigniter 2.1.4,

if add

>  hello world <script>alert('hi')</script> 

in inputbox.

while processing value codeigniter adding [removed] text.the output

hello world[removed]alert('hi');[removed]

i think should use strip_tags function php

echo strip_tags("<b>foo</b>"); 

results in: foo , in case output of

echo strip_tags("hello world <script>alert('hi')</script>"); 

results in: hello world alert('hi')


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -