Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [esc-textarea]

The tag has no usage guidance.

2
votes
2answers
6k views

How do I stop HTML entities in a custom meta box from being un-htmlentitied?

I have a custom meta box that is supposed to accept HTML, but the text I'm trying to input contains both double and single quotes (and ampersands), and it's messing up the saved data - each time I ...
1
vote
1answer
1k views

How to stop wordpress from mangling HTML in a metabox textarea

Can anyone lend a hand and suggest the best way to get a textarea in a meta box to stop mangling HTML? I've been digging around here online... and here...and also here...looking for answers, but I ...
1
vote
3answers
3k views

Alternative to esc_textarea

I need an alternative function to use with textareas in meta boxes instead of esc_textarea. The problem is that when I use this function with textarea's it removes line breaks and paragraphs. Is ...
1
vote
1answer
2k views

Convert textarea with wp_editor

I have a custom tabbed menu which has some input fields that works properly. I followed this tutorial: http://wp.tutsplus.com/tutorials/the-complete-guide-to-the-wordpress-settings-api-part-8-...
1
vote
2answers
2k views

Disable formatting on textarea

I'm using the following code in my plugin to display a <textarea> field on a page: echo '<textarea required="required" name="Message" class="textarea" cols="70" rows="10">'.esc_textarea($...
1
vote
1answer
1k views

How to add text to comment form #content textarea?

I have a plugin that does validation on user submitted comments. When validation fails, I want to redirect them back to the comment form, and have their comment still appear in the comment box, so ...
0
votes
2answers
1k views

sanitize vimeo embed code?

I have a custom meta box with a textarea where users can drop in vimeo embed code. Should I sanitize this code before I update_post_meta, and, if so, how should I go about it? I don't want to strip ...
0
votes
1answer
922 views

Sanitizing textarea for wp_insert_post with TinyMCE enabled or disabled

I'm saving a post data from a front end form, where there is a <textarea>. I need to sanitize it properly so that won't be harmful by any kind. The textarea can be a plain text area or, if ...
0
votes
1answer
596 views

Custom JS text area in customizer is being formatted wrong in document

I have created a wordpress theme, in the wordpress theme customizer I have added a couple of text areas where a user can input their own CSS or JS to be added to the head. The placement of the text ...
0
votes
1answer
70 views

Character \ appearing before ' after saving a settings page

It's a strange issue and I've seen it happen with plugins, however I don't know how to fix it. Maybe just a PHP issue? Anyhow, I have a settings/options page with several text areas. Upon saving, a "\...
0
votes
0answers
12 views

WordPress Product designer with draggable textarea issues

I am working with gold product designer and when we try to convert cavas2png, i am having a problem with multiline text How to define fix character in a line when converting to canvas to png Please ...