{ "info": { "author": "Ivan Konovalov", "author_email": "rvan.mega@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", "Topic :: Text Processing" ], "description": "This is repository is an improved version of htmlcutstring (https://code.google.com/p/cut-html-string/).\r\nI'm not the original author.\r\n\r\nDifferences between original\r\n============================\r\n1. htmlcutstr has availability to count words instead of characters\r\n2. It works fine on both Python 2.x and 3.x\r\n\r\nInstallation\r\n============\r\nRun 'setup.py install' to install this package.\r\n\r\nUsage\r\n=====\r\ncutHtmlString(string, limit, countType='c')\r\n\r\n| string is obviously the string you want to cut\r\n| limit maximum number of characters/words (depending on countType value) output string can have\r\n| countType can be equal to 'c' or 'w'\r\n| 'c' means 'count by characters'\r\n| 'w' means 'count by words'.\r\n\r\nExamples\r\n========\r\n::\r\n \r\n from htmlcutstr import cutHtmlString\r\n \r\n htmlstring = '