Active
Project:
Twitter
Version:
7.x-5.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
11 Nov 2009 at 23:13 UTC
Updated:
25 Jan 2013 at 23:11 UTC
When i post as admin i post usualy with the html filter on. So alle my messages have html (paragraphs), i don't want that in twitter. So we should strip all html from %body and %teaser so the tweets wont look like:
<p>test tweet</p>
Comments
Comment #1
Michsk commentedplease insert strip_tags() function in this module.
Comment #2
webatelier commentedwork around ...
Make a new input format where you :
- don't allow any HTML except the a tags (if you want links) (via the 'HTML Filter' option in the Input Formats => Edit => Filters setting)
- activate the Twitter #hashtag converter (not mandatory but practical for hash tags)
Give this input format a clear name ('Twitter no html' for instance)
Now install the Better formats module (http://drupal.org/project/better_formats)
allowing you to limit a content type to 1 or more input formats ...
Now IN your preferred content type (the one you use to post to twitter) allow ONLY the new 'Twitter no html' input filter
There you are ...
Comment #3
Michsk commentedWe don't need a workaround, it just got to work. So strip_tags() is the way to go.
Comment #4
steinmb commentedComment #5
13rac1 commented