Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Libraries

    htmlcutstring 1.1

    Download button

    No screenshots available
    Downloads: 240  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    M. Prajwala | More programs
    GPL v3 / FREE
    September 21st, 2009, 13:57 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    htmlcutstring description

    Python module which help to cut HTML string by keeping HTML tags as it is

    htmlcutstring offers an easy way to extract an excerpt of a text string with a given length limit. But if you want to extract an excerpt from HTML, the tags that may exist in the text string make it more complicated.

    This module provides a solution to extract excerpts from HTML documents with a given text length limit without counting the length of any HTML tags.

    This package is used to cut the string which is having html tags. It does not count the html tags, it just count the string inside tags and keeps the tags as it is.

    ex: If the string is "welcome to < b >Python World< /b > < br/ > Python is bla". and If we want to cut the string of 16 charaters then output will be "welcome to < b >Python< /b >".

    Here while cutting the string it keeps the tags for the cutting string and skip the rest and without distorbing the div structure.

    USAGE1:


     obj = HtmlCutString("welcome to Python World
    Python is",16)

     newCutString = obj.cut()


    USAGE2:

     newCutString = cutHtmlString("welcome to Python World
    Python is",16)



    Product's homepage

    Requirements:

    · Python

      


    TAGS:

    HTML strings | cut string | HTML tags | HTML | string | tags

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM