I came across a weird issue while rendering content is pages.
I tried to view a code snippet (BASH SCRIPT) something like this “show this ${test}”
ckEditor Source contains the below code
show this ${test}
But in the page view, below content is getting displayed.
I looked into the code and found that the page is rendered through below function
cb.getCurrentPage().renderContent()
The above changes mentioned by Saravanan displaying bash code correctly. But, It is not displaying tags in HTML Content.
Example:
Actual HTML Content:
The component of the element specifies a numeric value to be either used
in a calculation or comparison statement.
Displaying in page:
The component of the element specifies a numeric value to be either used
in a calculation or comparison statement.
If we make config.basicEntities = true then the above HTML content is displaying correctly.But, the bash code is displaying incorrectly in page view. We have used code snippets to insert bash code into a page.
We are using latest version of ckeditor.
Bash code is displaying as below in page:
show this ${Setting: test not found}