◄ ► | Muuda | Home | Admin | en de fr et | Sign in

#6268 (ChildrenByParent renders escaped links)

by Luc Saffre · in Developers · assigned to Sharif Mehedi

Kokkuvõte

Children

Kommentaarid

  • 1 aasta, 2 kuud ago by Luc Saffre about #6268 (ChildrenByParent renders escaped links) : I now looked at the Page.as_paragraph() method and the reason seems obvious: this code still uses ET elements, which is kind of nonsense for as_paragraph(). We should convert the whole method to use safe html strings. But before starting to fix the issue, I'll now try to reproduce it.
  • 1 aasta, 2 kuud ago by Luc Saffre about #6268 (ChildrenByParent renders escaped links) : I think the solution is easier than that. We must rather use mark_safe() instead of returning an ET element. Let's look at it together.
  • 1 aasta, 2 kuud ago by Sharif Mehedi about #6268 (ChildrenByParent renders escaped links) : Using lxml.builder.E should parse strings into elementtree using fromstring, only then the element is usable within a E.tag element. If the string is plain text (does not include any html markup) then there's no problem putting it directly with a E.tag element but the html markup(s) (when there's an...
  • 1 aasta, 2 kuud ago by Luc Saffre about #6268 (ChildrenByParent renders escaped links) : Created new Ticket #6268 (ChildrenByParent renders escaped links).