Extracting description from HTML

Bug #336975 reported by Paul Everitt on 2009-03-02
2
Affects Status Importance Assigned to Milestone
KARL3
Medium
Paul Everitt

Bug Description

In:

  http://carlos.agendaless.com/dko/policies/blog.html#add-blog-entry

...it says:

"The first “block” in the text becomes the “description” (used in show-blog and search results.)"

We need a solution for this that handles HTML added TTW as well as HTML sent in by mail. Most content types (e.g. wiki) will need a variant on this for display in search results.

We're just following the same policy as KARL2, which we could trawl for the code for the HTML or text cases. Or, just reverse-engineer the policy, which I believe is seems to use html2text.

Changed in karl3:
assignee: nobody → paul-agendaless
importance: Undecided → Medium
milestone: none → m4
Paul Everitt (paul-agendaless) wrote :

Making a function in karl/views/blog.py

description: updated
Paul Everitt (paul-agendaless) wrote :

Done for blogentry (add/edit), blog comment (add/edit), and wikipage (add/edit).

Changed in karl3:
status: New → Fix Committed
Changed in karl3:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers