Title: [Plugin: Live Blogging] Twitter Problem
Last modified: August 20, 2016

---

# [Plugin: Live Blogging] Twitter Problem

 *  [rfran1984](https://wordpress.org/support/users/rfran1984/)
 * (@rfran1984)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-live-blogging-twitter-problem/)
 * Hi,
 * I’m using the Live Blogging plugin, and I’ve done this:
 * On line 1354 of live-blogging.php
 *     ```
       $content = filter_var($post->post_content, FILTER_SANITIZE_STRING);
   
       Change to
       $content = filter_var($post->post_content, FILTER_SANITIZE_URL);
       ```
   
 * To make quotes and other special characters appear correctly in tweets. However,
   when I make a post, the Twitter post ignores any spaces I put between words, 
   like this:
 * [https://twitter.com/tvlive_extra/statuses/240465072932139009](https://twitter.com/tvlive_extra/statuses/240465072932139009)
 * Is there any way I can fix this? I need to use the live-blogging plugin on Monday,
   and don’t want any problems.
 * Thanks in advance.
 * [http://wordpress.org/extend/plugins/live-blogging/](http://wordpress.org/extend/plugins/live-blogging/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [chrisnorthwood](https://wordpress.org/support/users/chrisnorthwood/)
 * (@chrisnorthwood)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-live-blogging-twitter-problem/#post-3011496)
 * Well FILTER_SANITIZE_URL strips spaces (it is used to remove characters which
   are invalid in a URL from a string), so that’s what you’d expect.
 * You probably want to leave it as FILTER_SANITIZE_STRING but instead use html_entity_decode
   on $content as well, i.e.,
 * `$content = html_entity_decode(filter_var($post->post_content, FILTER_SANITIZE_STRING));`
 * If that solves your issue I could look into making that default in future versions
   of the plugin
 *  Thread Starter [rfran1984](https://wordpress.org/support/users/rfran1984/)
 * (@rfran1984)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-live-blogging-twitter-problem/#post-3011497)
 * Didn’t work I’m afraid. Twitter’s still ignoring spaces in words.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘[Plugin: Live Blogging] Twitter Problem’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/live-blogging.svg)
 * [Live Blogging](https://wordpress.org/plugins/live-blogging/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/live-blogging/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/live-blogging/)
 * [Active Topics](https://wordpress.org/support/plugin/live-blogging/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/live-blogging/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/live-blogging/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [rfran1984](https://wordpress.org/support/users/rfran1984/)
 * Last activity: [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-live-blogging-twitter-problem/#post-3011497)
 * Status: not resolved