remove <br> tag on ckeditor output

remove <br> tag on ckeditor output

synonym remove
another word for remove or eliminate
remove bg video
remove definition synonyms
how to pronounce remove
opposite of remove
completely removed
unable to be removed

I have integraded a textarea box with ckeditor and each time I press enter on the backend side for a new line it outputs <br> on the front end, is there a way to remove <br> on the front end as I don't want the html tag output on the front end

I line of code looks like the following

echo "<strong>Sites Linked Out To</strong>: " . $row->sites_linked_out_to;

is there a way to remove the html <br> tag before it gets added to the database or after?

Thank you in advance


php strip tags function write in tags secondary parameter, keeping tags, other html tags clean

strip_tags($input, '<a><img><div><strong>');

more information for strip tags function http://php.net/manual/tr/function.strip-tags.php

Remove, synonyms: withdraw, abolish, eliminate, get rid of, do away with, take away, stop, put an end to, cut, axe Remove definition is - to change the location, position, station, or residence of. How to use remove in a sentence.


You could call nl2br() when you insert the content.

This will replace any <br> with a new line \n

Note though; If you are actually seeing the tag its probably being url encoded somewhere. If you call nl2br() before this encoding takes place it should work.

You could also strip other undesired tags using strip_tags. Do this after replacing the new line.

define('ALLOWED_TAGS', '<p>,<strong>,<ul>,<li>,<ol>,<em>');
$sContent = strip_tags( nl2br($sContent), ALLOWED_TAGS);

Note though, this wont strip out <a href='#' onclick='DO_SOMETHING_BAD'>click me</a>

You could look at using a library such as html purifier to sanitise input. Or just ensure you sanitise all output correctly.

See nl2br() and strip_tags for more info.

Remove, "it is an isolated place, <b>far removed from</b> the London art world" Define remove. remove synonyms, remove pronunciation, remove translation, English dictionary definition of remove. v. re·moved , re·mov·ing , re·moves v. tr. 1


I know I am late but this may help someone..

Use

htmlspecialchars_decode($your_string);

remove, noun. the act of removing. a removal from one place, as of residence, to another. Remove definition, to move from a place or position; take away or off: to remove the napkins from the table. See more.


Remove Synonyms, Remove Antonyms, Definition of remove. (Entry 1 of 2). transitive verb. 1a : to change the location, position, station, or residence of remove soldiers to the front. b : to transfer (a legal  Synonyms for remove at Thesaurus.com with free online thesaurus, antonyms, and definitions. Find descriptive alternatives for remove.


.remove(), VerbEdit. remove (third-person singular simple present removes, present participle removing, simple past and past participle removed). (  41 synonyms of remove from the Merriam-Webster Thesaurus, plus 83 related words, definitions, and antonyms. Find another word for remove. Remove: to rid oneself of (a garment).


REMOVE, Synonyms for remove at Thesaurus.com with free online thesaurus, antonyms, and definitions. Find descriptive alternatives for remove. Remove is a powerful utility for uninstalling programs you no longer want on your computer. You can easily get rid of unnecessary applications, partially