On Wednesday, November 16, 2016 at 8:45:46 PM UTC-5, 黄祥 wrote:
>
> thanks for the hints, anthony, forgot about permitted_tags and
> allowed_attributes arguments
> how to face the html comment for that?
> *e.g. :*
> permitted_tags = ['<!--', '!--', '--'], allowed_attributes =
> {'table':['id'] }
> *result*
> <!-- </tbody> </table> <table id = 'header-right'> <tbody> -->
>
Can you show the exact input as well as your code -- I cannot reproduce
that?
In any case, I don't think there will be a way to preserve HTML comments
(they should be escaped). In fact, any non-permitted tags will simply be
escaped (not removed).
Anthony
>
>
> no error occured, but the result is not expected
>
> best regards,
> stifan
>
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.