Expand my Community achievements bar.

SOLVED

White space included in final html when using context html

Avatar

Level 3

Hello,

Our team is using context to export a variable with html tags in the html.

When using context unsafe, it exports correct.

When using context html, the content is exported, but a whitespace is included after each html tag

Example: when the dialog property is: 'begin<span>middle</span>end', the exported html is 'beginmiddle end'

Example: when the dialog property is: 'begin<span>middle1</span><span>middle2</span>end', the exported html is 'beginmiddle1 middle2 end'

 

I want to find out why sightly is "adding" the space after all the html elements using context 'html' (the space is not added when context safe is used) and how to fix it.

 

P.S.: We already double checked the css and invisible characters.

1 Accepted Solution

Avatar

Correct answer by
Level 10

It looks like a bug, I could replicate it.

Raise a day care ticket with adobe

**Meanwhile, I noticed, if you pass value from dialog as  <p>begin<span>middle</span>end</p> ( adding 'p' tags it works fine)

As of now you can add p tag unless you get any details from adobe.

View solution in original post

1 Reply

Avatar

Correct answer by
Level 10

It looks like a bug, I could replicate it.

Raise a day care ticket with adobe

**Meanwhile, I noticed, if you pass value from dialog as  <p>begin<span>middle</span>end</p> ( adding 'p' tags it works fine)

As of now you can add p tag unless you get any details from adobe.