Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove HTML tags from metadata detail #7105

Closed
mattiagiupponi opened this issue Mar 18, 2021 · 0 comments
Closed

Remove HTML tags from metadata detail #7105

mattiagiupponi opened this issue Mar 18, 2021 · 0 comments
Assignees
Milestone

Comments

@mattiagiupponi
Copy link
Contributor

Is your feature request related to a problem? Please describe.
In order to have a cleanest view of the medatata (via showmetadata or csw_to_extra_format), the html tags should be removed (from the visualization not from a db prospective)

Describe the solution you'd like
Django provides a utils strip_tags which is perfect for this purpose.
https://github.com/django/django/blob/f6713cda89d323565cfdc867c977c3363edcfc3c/django/utils/html.py#L180

@mattiagiupponi mattiagiupponi added this to the 3.2 milestone Mar 18, 2021
@mattiagiupponi mattiagiupponi self-assigned this Mar 18, 2021
afabiani pushed a commit to geosolutions-it/geonode that referenced this issue Mar 19, 2021
* [Fixes: GeoNode#7015] Remove HTML tags from visualization

* [Fixes: GeoNode#7015] strip_tags removed inside model function, increase test coverage and fix template

(cherry picked from commit 9ac0741)

# Conflicts:
#	geonode/base/models.py
#	geonode/base/tests.py
afabiani pushed a commit that referenced this issue Mar 19, 2021
* [Fixes: #7033] Mandatory fields in editor

* [Backport #7105] Backport of #7015

* [Backport #7105] Remove HTML tags from metadata detail

* [Backport #7105] Remove HTML tags from metadata detail
afabiani pushed a commit to geosolutions-it/geonode that referenced this issue Mar 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants