I have added a small snippet of java script call underneath:
<button type="button" class="btn btn-secondary btn-sm" title="${tasksList[val]["command"]}"
onclick="bootbox.alert({
size: 'large',
title: 'Job Command',
message: '<pre>' + this.title + '</pre>'
});">
Job Command
</button></td>
the message looks like ssh serverdomain
However, when I do:
console.log(tasksList[val]["command"])
it shows the correct output i.e
ssh serverdomain "java -jar /local/folder --date=20190812"
I believe that the double quotes in the final output create some problem. Anyone knows how to get this correct? main focus should be this.title
from the first code snippet.
It works fine for strings with no double quotes in there.