Symptom
- Part of the source code in my wiki/blog stripped off.
- Wiki/blog not saving entire source code.
Environment
SAP Jam Collaboration
Reproducing the Issue
- Create a Wiki page in Jam.
- Click the Source Code Widget.
- Copy the code as shown below in code 1.
- Save the source code page.
- Open the source code page.
- You will find most of code is not present. All that remains is code 2.
<body>
<script language="javascript">
//some script
</script>
<h1>Something</h1>
</body>
</html>
Code 2:
--------
<h1>Something</h1>
Cause
For security reasons, no <script> tags are allowed within source code of wikis or blogs.
So if any source code has a <script> tag, it is automatically stripped off.
Resolution
Modify your source code to exclude any <script> tags.
Keywords
wiki,source code , KBA , LOD-SF-JAM , SAP Jam , Problem
Product
SAP Jam Collaboration all versions