Download & Extend

Delete html from %body (probably als %teaser)

Project:Twitter
Version:6.x-3.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

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

#1

please insert strip_tags() function in this module.

#2

work 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 ...

#3

We don't need a workaround, it just got to work. So strip_tags() is the way to go.

#4

Priority:critical» normal