Hi Christian,
Many thanks for getting back to me on this one.
Dealing with the last point first (i.e. applying formatting buttons in non-wysiwyg text area fields), no problem. There is probably no reason for me to complicate things in that way. So we'll drop that.
Now onto the main point: is there a reference explaining which tags are allowed to be used in multiline textarea fields with CRED
You said that script tags will be stripped out, but all other HTML tags entered in CRED to a multiline field will be stored in the database. You provided me with two links to documentation as follows:
So my first question: How I would use this in my php so that the HTML tags entered by the user in the multiline textarea field have effect on the front end (e.g. so anything wrapped in a strong tag by the user appears in bold on the post when someone views it)?
I guess it is something to do with this item on the second link you provided, and that I would be using the 'html' option:
output:
'raw' | 'html' | 'normal'(default)
'raw'=display raw data stored in DB, 'html'=wrap data in HTML
...is that correct? If so, I could just use some help on structuring the php correctly and what needs to be added to this code:
types_render_field( "my-textarea", array( ) )
My best guess is that the code would need to be structured as follows, but your advice would be great please:
types_render_field( "my-textarea", array( "output" => "html" ) )
...am I even close?
Finally, you will see in the attached image what you on your own site display beneath the text area field I am typing in right now. This explains to users exactly which tags are allowed. So are they the full list of allowed tags, or can users use other tags, too (e.g. anchor tags, ordered lists, image tags, etc). And if they do so, will those tags have the expected result when someone views the post on the website if I use the correct code in my php?
Thanks again for your time and support.
Very best wishes,
Andrew.