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

Normalize text with HTML or XML tags into standardized HTML output #508

Open
helrond opened this issue May 19, 2022 · 0 comments
Open

Normalize text with HTML or XML tags into standardized HTML output #508

helrond opened this issue May 19, 2022 · 0 comments
Labels

Comments

@helrond
Copy link
Member

helrond commented May 19, 2022

Is your feature request related to a problem? Please describe.

Text coming from ArchivesSpace may contain XML or HTML tags. These tags are processed, indexed and ultimately rendered as strings in DIMES.

Describe the solution you'd like

Pass text fields through a pair of transformers which normalize HTML and XML to a uniform HTML output. The XML transformer should offer an XLST, while the HTML transformer should provide rules for filtering HTML. Both of these transformations should be configurable (meaning defaults for the XLST and HTML filtering rules should be provided but overideable through application configuration).

Describe alternatives you've considered

See #507 for a short-term solution.

Additional context

In order to provide consistency in the API, we may need to convert text which does not contain HTML or XML tags into the same expected HTML output.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant