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

refactor: HtmlSerializer for TextBone #631

Draft
wants to merge 4 commits into
base: develop
Choose a base branch
from

Conversation

phorward
Copy link
Member

@phorward phorward commented Jan 24, 2023

This PR is a work-in-progress - NO review required for now!

I've started this during #514, where I found that TextBones that are emptied still store a HTML <p></p><br> which should be considered as an empty-value as well. Why is there also an empty <p></p>? All this brought me to the definition of this dict with the valid HTML, which is just terrible.

Therefore, this PR should clean-up the HtmlSerializer-part of TextBone and should also maybe make the definition of custom whitelist settings easier, as it is currently the case.

@phorward phorward added Priority: Low This issue can be considered with enough idle time. refactoring Pull requests that refactor code but do not change its behavior. waiting-for-changes Waiting for changes/rework from the author labels Jan 25, 2023
@phorward phorward changed the title Refactor HtmlSerializer and TextBone refact: HtmlSerializer and TextBone Mar 15, 2023
@phorward phorward changed the title refact: HtmlSerializer and TextBone refactor: HtmlSerializer and TextBone Mar 17, 2023
@phorward phorward added this to the ViUR-core v3.6 milestone Sep 27, 2023
@phorward phorward changed the title refactor: HtmlSerializer and TextBone refactor: HtmlSerializer for TextBone Jan 25, 2024
@phorward phorward removed this from the ViUR-core v3.7 milestone Sep 18, 2024
phorward added a commit that referenced this pull request Oct 9, 2024
Provide the HtmlBone (TextBone) "validHtml"-default as a config
variable, so it can be changed globally.

This feature is useful to some projects, and is a first improvement on
the messy TextBone class.

Relates to and partly replaces #631.

---------

Co-authored-by: Sven Eberth <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: Low This issue can be considered with enough idle time. refactoring Pull requests that refactor code but do not change its behavior. waiting-for-changes Waiting for changes/rework from the author
Projects
Status: Todo
Development

Successfully merging this pull request may close these issues.

1 participant