Forum Stats

  • 3,783,605 Users
  • 2,254,809 Discussions
  • 7,880,480 Comments

Discussions

An OEM 13c Job Output Colorizing

Victor.Khalturin
Victor.Khalturin Member Posts: 15 Blue Ribbon
edited Dec 24, 2019 8:07AM in Enterprise Manager

I'm wondering if there is any way to inject html element into a job output

I have a simple bash script with the following content

   [[email protected] .scripts]# cat color.sh   echo " Non Escaped"   echo "<span style=\"color:blue;\">[ok]</span>"   echo " Escaped "   echo "\<span style=\"color:blue;\"\>[ok]\</span\>"   [[email protected] .scripts]# ./color.sh    Non Escaped   <span style="color:blue;">[ok]</span>    Escaped    \<span style="color:blue;"\>[ok]\</span\>

So I execute that script as the OS Command job in the Enterpise Manager and get the output like the following

pastedImage_0.png

So OEM treated tags as the text

Reviewing the OEM page source I see that all "<" and ">"  characters were substituted by both &lt and &gt


style="white-space: pre; cursor: text;" class="x25">&lt;span style="color:blue;"&gt;[ok]&lt;/span&gt;</span></span></td>

Is there any way to force them to be treated as html tags?