Jump to content

Recommended Posts

Posted

I'm trying to write a value to a textarea via de API. I'm making use of the Multivalue Textformatter module which works great for when the field has multiple rows added via admin.

But now I'm trying to add multiple lines to the textarea via the API and I cannot for the life of me figure, or find out how to do this.

I'm adding

"
"

to the end of of each new line. When I apply this value to a textarea in the template, this works fine, but when I

$line = "this is a line";
$p->textarea = $line."
"

I just get "this is a line &#13;&#10;". This is the case with the "/n" and "<br>" as well.

Turning on tinyMC doesn't help either as the output in the template is still the same. Turning on the HTML Encoder doesn't help either.

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
×
×
  • Create New...