Right, so it will simply do its best to close any unclosed tag – that’s it. Nothing more.
As you can see if you look at the source code, all the function does is make sure to balance out the tags that might not be. It’s also explained in the codex. (“force_balance_tags” is the real function that does the work; “balanceTags” defers to it if the options or attributes ask it to)
Hope this helps!
Related Posts:
- Validating input using java.util.Scanner
- What is the actual minimum length of an email address as defined by the IETF?
- Sanitize and data validation with apply_filters() function
- Server side validation
- Does wp_insert_post validate the input?
- WordPress oEmbed W3C Validation
- How to Remove novalidate attribute from comment form
- What is wp_check_invalid_utf8?
- Data Validation
- Data Validation: Always escape late / escape HTML Code
- Multiple register settings, with same option name – issue
- Inconsistent server code response using HTTP API
- wordpress site validation errors
- Data validation
- Best Practice for Validating and Sanitizing Data
- w3c validation problem – Twitter share button pulling content
- Data sanitization for user registration and user login
- wp_remote_post – handling responses
- What data sanitzation function should be used to store entire source code of webpage?
- protect user submitted posts
- Settings API – getting hidden input / submit button’s name
- Why the WP Core team does not allow filter_* functions? [closed]
- confused about sanitize_email after is_email [duplicate]
- How to escape multiple attribute at once in WordPress?
- Require user to input code from an array of allowed codes with Gravity Forms [closed]
- Output Sanitation
- How do I sanitize the str_replace function in javascript variables
- WordPress live, custom text box validation, how to?
- How to do more than one verify_nonce in one function?
- W3C validation errors (trailing slashes)
- Jquery Validation Engine with Conatct Form 7
- Gravity Forms validate arrival and departure
- Why is my script’s regex having its backslash removed?
- Validation Always Tells There Is an Open DIV
- How long does plugin review usually take?
- WP calendar summary attribute validation error
- how to sanitizing $_POST with the correct way?
- Simple way to alert error messages in Javascript
- How to Git stash pop specific stash in 1.8.3?
- How can I validate an email address using a regular expression?
- Good input validation loop using cin – C++
- How can I validate an email address using a regular expression?
- What are all the escape characters?
- Uses for the ‘"’ entity in HTML
- Reactjs – Form input validation
- How can I add ” character to a multi line string declaration in C#?
- What characters do I need to escape in XML documents?
- How to validate an email address in JavaScript
- Illegal Escape Character “\”
- XAML Binding Groups
- “Stray start tag footer” in html validator?
- A potentially dangerous Request.Form value was detected from the client
- Escape quotes in JavaScript
- WebForms UnobtrusiveValidationMode requires a ScriptResourceMapping for jquery
- Email validation using jQuery
- How to test valid UUID/GUID?
- what is a parse error and how do I fix it
- Server-side schema validation with JAX-WS
- Which characters need to be escaped when using Bash?
- Escape string Python for MySQL
- What characters must be escaped in HTML 5?
- How to validate date with format “mm/dd/yyyy” in JavaScript?
- Validating IPv4 addresses with regexp
- An invalid form control with name=” is not focusable
- How can I selectively escape percent (%) in Python strings?
- How do I escape a single quote in jQuery?
- How is \\n and \\\n interpreted by the expanded regular expression?
- Escape Character in SQL Server
- Validate date in dd/mm/yyyy format using JQuery Validate
- Why shouldn’t `'` be used to escape single quotes?
- What does it mean to escape a string?
- How can I check if a string is a valid number?
- HTML5 Validation Error: body start tag seen but an element of the same type was already open
- How to escape apostrophe (‘) in MySql?
- Invalid escape sequence (valid ones are \b \t \n \f \r \” \’ \\ )
- How can I check if a single character appears in a string?
- What is jQuery Unobtrusive Validation?
- jQuery Form Validation before Ajax submit
- Contact Form 7 – Custom Validation
- How does the SQL injection from the “Bobby Tables” XKCD comic work?
- Escaping HTML strings with jQuery
- What’s the Use of ‘\r’ escape sequence?
- Hapi/Joi Validation: How to process text to a specific format
- How do I use spaces in the Command Prompt?
- What is the best Java email address validation method?
- Check if inputs are empty using jQuery
- How do I escape ampersands in XML so they are rendered as entities in HTML?
- ZIP Code (US Postal Code) validation
- A non well formed numeric value encountered
- Unrecognized escape sequence for path string containing backslashes
- With “magic quotes” disabled, why does PHP/WordPress continue to auto-escape my POST data?
- validate textfield contents in wordpress simple job board plugin
- What’s the difference between esc_html, esc_attr, esc_html_e, and so on?
- Remove type attribute from script and style tags added by WordPress
- Should I escape wordpress functions like the_title, the_excerpt, the_content
- In Which Contexts are Plugins Responsible for Data Validation/Sanitization?
- don’t publish custom post type post if a meta data field isn’t valid
- Should HTML output be passed through esc_html() AND wp_kses()?
- How to check if a string is a valid URL
- Best Practice for PHP