Welcome Guest, Not a member yet? Register   Sign In
Bbcode support in helper
#1

In codeigniter add a new helper call bbcode. It takes a string and return html tags.
You can do it with php build in function preg_replace()
like bbcode.
example :
line break return a <br> tag.
dobule line break return <p> tag with close tag also.
link tag Codeigniter return <a href='www.codeigniter.com'>Codeigniter</a>
image tag [img]www.codeigniter.com/logo.jpg[/img] return <img src="www.codeigniter.com/logo.jpg">

please add this helper feature soon.
Reply


Messages In This Thread
Bbcode support in helper - by mmrtonmoy - 07-01-2020, 02:32 AM
RE: Bbcode support in helper - by Chroma - 07-08-2020, 02:05 AM
RE: Bbcode support in helper - by kilishan - 07-08-2020, 06:45 AM
RE: Bbcode support in helper - by hobbyci - 10-10-2020, 01:44 PM
RE: Bbcode support in helper - by includebeer - 10-10-2020, 03:44 PM



Theme © iAndrew 2016 - Forum software by © MyBB