Text 20 Mar 4 notes Cleaning HTML tags

If you are using an API like Tumblr you can get all your posts filtering by text using “&filter=text” parameter (http://www.tumblr.com/docs/en/api) But if you want to show your posts with embedded images (in texts post for example) and line breaks this is a wrong option.

What is the solution?, filtering=none (by default) and to use some plugin like jquery-clean that allows to configure what html tags do you want to clean.

http://code.google.com/p/jquery-clean/

  1. rabarroso posted this

Design crafted by Prashanth Kamalakanthan. Powered by Tumblr.