Jump to content

Recommended Posts

Posted

<br> or <br /> This doesnt seem to be reflected within CK editor.

eg:
$page->body = $sanitizer->purify("<br />Some Content<br /><br />More Content");

Results in one long string in CK. Bug? Or am I missing something here.

Posted

It works fine for me

$page->of(false);
$page->body = $sanitizer->purify("<br />Some Content<br /><br />More Content");
$page->save();

image.png.befbf7b3ffed1ec101526d216aa97257.png

Posted
8 minutes ago, Mackski said:

on save ALL HTML is stripped out.

When you open the source dialog of CKE do you get just basic text?

 

Try disabling ACF and Purifier, maybe one of them is misbehaving (don't leave it disabled though)

image.thumb.png.d45a127e21232e0032a0b61c129e43de.png

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...