You are sending text
unencoded. urlencode
that just like you do the permalink.
<a class="popup" href="http://twitter.com/share?url=<?php echo urlencode(get_permalink($post->ID)); ?>&text=<?php echo urlencode(the_content_limit(100, ""));?>"><img src="http://zitatezumnachdenken.com/wp-content/uploads/2013/04/twittersmall.png" alt="twitter"></a>
Although, the_content_limit
looks like it probably echo
s (based on your usage) instead of returning a string, which you will need. So I expect you will have to find that function and alter it or duplicate it or find some other alternative to get a string that you can encode.
Related Posts:
- Validating input using java.util.Scanner
- What is the actual minimum length of an email address as defined by the IETF?
- 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
- Does balanceTags() provide any escaping / protection?
- 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]
- 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
- Simple way to alert error messages in Javascript
- 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?
- Reactjs – Form input validation
- syntaxError: ‘continue’ not properly in loop
- syntaxError: ‘continue’ not properly in loop
- syntaxError: ‘continue’ not properly in loop
- How to validate an email address in JavaScript
- XAML Binding Groups
- “Stray start tag footer” in html validator?
- A potentially dangerous Request.Form value was detected from the client
- 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
- 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
- Validate date in dd/mm/yyyy format using JQuery Validate
- 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 can I check if a single character appears in a string?
- urllib.request in Python 2.7
- 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?
- Hapi/Joi Validation: How to process text to a specific format
- What is the best Java email address validation method?
- Check if inputs are empty using jQuery
- ZIP Code (US Postal Code) validation
- A non well formed numeric value encountered
- WordPress PHP proxy/helper pages for Twitter API
- validate textfield contents in wordpress simple job board plugin
- Remove type attribute from script and style tags added by WordPress
- 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
- How to check if a string is a valid URL
- Sanitize and data validation with apply_filters() function
- How to validate custom fields in custom post type?
- How should one implement add_settings_error on custom menu pages?
- WordPress Internal @ Mentions
- How to properly validate data from $_GET or $_REQUEST using WordPress functions?
- Sample code for validating custom metabox?
- Validation error: Extending Gutenberg gallery block
- Replacing the WordPress password validation
- is_email() VS sanitize_email()
- Check for and enforce unique value in user-entered custom meta field in WP Admin
- How to Debug the ‘save_post’ Action?
- WordPress REST API validation
- A plugin where users can comment with Facebook or Twitter or OpenID [closed]
- How can I make post fields required in WordPress?
- How to define a query parameter with REST API?
- Require featured image
- Importing Tweets with certain hashtags into WordPress
- edit profile validation refreshes all field if missing wordpress
- What is the best practice for escaping data URIs?
- Using WordPress publicize with main account and editor user accounts
- Shortcode putting html such as
- Validate an option array
- How do I sanitize a javascript text?
- Prevent empty Post Title on form submit via front end post (wp_insert_post_)
- Create New WordPress User after Twitter Signin, using Twitter credentials?
- Validating a new user registration field