I'm using HTML in YML yields [Object Object]
context:
fieldLabel: |
<strong>
Some Bold Text
</strong> and now normal continued.
It's rendering as
context:
fieldLabel: ",[object Object], and now normal continued.↵"
but I want my output to be
context: { fieldLabel: '<strong>\n Some Bold Text\n</strong> and now normal continued.\n' },
My JS Code :
const tests = YAML.safeLoad(this.props.children,{json:true});
console.log("tests",...tests)
Console output :
context:
fieldLabel: ",[object Object], and now normal continued.↵"
It is coming as [object Object] instead of <strong>\n Some Bold Text\n</strong>