Is there an option to disable nesting into text elements containing HTML?
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
- Issue type
- Feature
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- erlang
- Domain
- backend
Research direction
Start with the fxml_stream:parse_element/1 entry point shown in the issue and trace how nested elements inside text content are represented. Determine whether an option can preserve the body as one Erlang binary, then verify that the chosen behavior is covered by parser tests; the issue does not name specific files or tests.
Written by the indexing model from the issue text.
Description
Hi,
I'm probably missing somehing but I am trying to figure out if it is possible to consider the body of a particular element as sometihng that does not need to be nested into (as is done in the below example with the granular tokenizing of the HTML elements inside the "body" element). I can see the logic for the outcome I'm getting but if I would like it just as one big CDATA is there any way I can specify that?
My goal is to simply extract the "body" as one erlang binary.
Thanks,
7> fxml_stream:parse_element(<<"<message><body>?OTRv2?\n<b>[email protected]</b> has requested an <a href=\"http://otr.cypherpunks.ca/\">Off-the-Record private conversation</a>. However, you do not have a plugin to support that.\nSee <a href=\"http://otr.cypherpunks.ca/\">http://otr.cypherpunks.ca/</a> for more information.</body></message>">>).
{xmlel,<<"message">>,[],
[{xmlel,<<"body">>,[],
[{xmlcdata,<<"?OTRv2?\n">>},
{xmlel,<<"b">>,[],[{xmlcdata,<<"[email protected]">>}]},
{xmlcdata,<<" has requested an ">>},
{xmlel,<<"a">>,
[{<<"href">>,<<"http://otr.cypherpunks.ca/">>}],
[{xmlcdata,<<"Off-the-Record private conversation">>}]},
{xmlcdata,<<". However, you do not have a plugin to support that"...>>},
{xmlel,<<"a">>,
[{<<"href">>,<<"http://otr.cypherpunks.ca/">>}],
[{xmlcdata,<<"http://otr.cypherpunks.ca/">>}]},
{xmlcdata,<<" for more information.">>}]}]}
- Dominant language
- Erlang
- Stars
- 139
- Forks
- 44
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from processone/fast_xml
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
processone/fast_xml#52 ·
-
enhancement
Difficulty 3/5 1-2 days Newbie friendliness 38/100
processone/fast_xml#32 · 3 comments · 1 reaction ·
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 25/100
processone/fast_xml#25 · 1 comment ·
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 35/100
processone/fast_xml#21 · 5 comments ·
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 25/100
processone/fast_xml#5 · 7 comments ·
All issues in processone/fast_xml
Similar issues
-
Python: Bug: split_plaintext_paragraph / split_markdown_paragraph can return a chunk larger than max_tokensPossibly taken @xThreeh claimed this today. Openpython triage
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
microsoft/semantic-kernel#14566 ·
Maintainers usually reply within 4 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
java-native-access/jna#1740 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
Variables passed to Compensated are not set on the routing slipMay be free again A pull request for this issue was closed without being merged. Open
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
MassTransit/MassTransit#6249 ·
-
bug code cleaning
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
furrer-lab/abn#272 ·