mobile.htmlprocessing 1.0.0

Turn arbitary HTML content to mobile browser friendly format
mobile.htmlprocessing is a Plone extension providing utilities to sanitize arbitrary HTML content into mobile browser friendly format.

It is part of mFabrik Web and Mobile solutions package to build multichannel content management with Python.

This is a framework library which is designed to work with any web server or Python based CMS system. It allow rewrites HTML. You need to subclass and specialize provided base classes to match with your CMS paradigms. For examples, see Go Mobile for Plone CMS add-on product.

Usage

Please see example code in unit tests.

Unit tests

Put mobile.htmlprocessing to your PYTHONPATH.

Run unit tests normally like:

python tests/test_image.py

Main features:

  • Rewrite < img > tags so that images are resized for mobile viewing
  • Make arbitraty input HTML to valid XHTML to more compatible with mobile phones
  • Enforce empty ALT text on images missing ALT attribute
  • Protect against Cross-Site Scripting Attacks (XSS) and other nastiness, as provided by lxml.html.clean. Both trusted HTML and non-trusted HTML processing modes are supported.
  • Unicode compliant - eats funky characters

last updated on:
July 7th, 2011, 1:14 GMT
price:
FREE!
homepage:
webandmobile.mfabrik.com
license type:
GPL (GNU General Public License) 
developed by:
mFabrik Research Oy
category:
ROOT \ Internet \ Plone Extensions
mobile.htmlprocessing
Download Button

In a hurry? Add it to your Download Basket!

user rating

UNRATED
0.0/5
 

0/5

Rate it!
What's New in This Release:
  • Don't choke on empty HTML documents [miohtama]
read full changelog

Add your review!

SUBMIT