The server should then remove this content, for both <style> and <script> which should not be displayed.
# Context
This occured when an album's description contains HTML :
```html
<style>
.additional_info { max-width:9999px; }
.additional_info p { text-align:center; }
.additional_info iframe { margin:0px auto; display:block; }
</style>
```
# Issue
Currently, the server removes all markups like `<style>` and `</style>`. However the content in between stays and markups are replaced by line breaks :
```
id: "131",
name: "My album",
comment: "
.additional_info { max-width:9999px; }
.additional_info p { text-align:center; }
.additional_info iframe { margin:0px auto; display:block; }
",
```
# Expected
The server should then remove this content, for both <style> and <script> which should not be displayed.
<!-- github-sync-id:1832899210 -->
When $conf['allow_html_descriptions'] = true, the API method pwg.categories.getList should return the whole HTML description but it does not. And when $conf['allow_html_descriptions'] = false, the content in between markups should indeed not stay and markups should also not be replaced by line breaks.
When `$conf['allow_html_descriptions'] = true`, the API method `pwg.categories.getList` should return the whole HTML description but it does not. And when `$conf['allow_html_descriptions'] = false`, the content in between markups should indeed not stay and markups should also not be replaced by line breaks.
<!-- github-comment-id:3172595022 -->
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Context
This occured when an album's description contains HTML :
Issue
Currently, the server removes all markups like
<style>and</style>. However the content in between stays and markups are replaced by line breaks :Expected
The server should then remove this content, for both <style> and <script> which should not be displayed.
When
$conf['allow_html_descriptions'] = true, the API methodpwg.categories.getListshould return the whole HTML description but it does not. And when$conf['allow_html_descriptions'] = false, the content in between markups should indeed not stay and markups should also not be replaced by line breaks.