db4o Developer Community

db4o open source object database, native to Java and .NET
Welcome to db4o Developer Community Sign in | Join
in Search
More Search Options

Browse by Tags

All Tags » HTML Trim   (RSS)
Sorry, but there are no more tags available to filter with.
  • Code Challenge: HTML-smart trim() command

    Here's a challenge for you: Take an arbitrary-length string of (valid) HTML code and trim it to n (visible) characters max-length while keeping the resulting HTML valid and removing unnecessary tags. I'll also put another input constraint: no layout, images, or script; you can assume that table, img, and script tags will all be stripped out ...
    Posted to Off Topic (Forum) by Eric Falsken on February 28, 2008