I want to put this:
<script src = "Script2.js" type = "text/javascript"> < / script>
in a std::string
so I append a (\
) symbol before every double quotes ("
) to give it a literal meaning of ", instead of a string demarcation in C++ like this:
std::string jsFilesImport = "<script src = \"Script2.js\" type = \"text/javascript\"> < / script>\""
If I have a big string
with many ("
), adding (\
) for every ("
) becomes difficult. Is there a simple way to achieve this in C++?