#6268 (ChildrenByParent renders escaped links)
by Luc Saffre · in Developers · assigned to Sharif Mehedi
Summary
![]()
Children
Comments
- 1 year, 2 months 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 year, 2 months 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 year, 2 months 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 year, 2 months ago by Luc Saffre about #6268 (ChildrenByParent renders escaped links) : Created new Ticket #6268 (ChildrenByParent renders escaped links).