White space included in final html when using context html | Community
Skip to main content
March 18, 2016
Solved

White space included in final html when using context html

  • March 18, 2016
  • 1 reply
  • 690 views

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.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by edubey

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.

1 reply

edubey
edubeyAccepted solution
March 19, 2016

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.