STIXProject / stix-to-html

Convert STIX XML to HTML

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fix Comma Handling

gtback opened this issue · comments

We should fix how STIX to HTML handles commas in elements so delimiters are correctly replaced with comma values. For example, we currently see things like the following in the output:

Size_In_Bytes [condition=InclusiveBetween] → 13312##comma##14336

"##comma##" should be replaced with "," in this case.

[From STIXProject/Tools#22]

Preliminary support for text nodes that are descendants of cybox:Properties that are delimited by ##comma##.

Nodes with a parent element that has @condition="InclusiveBetween" or @condition="ExclusiveBetween" are displayed as a range (with css class cyboxPropertiesRange), otherwise, the items are displayed as a UL list (with css class cyboxPropertiesTokenizedList).