I have a page that calls content into the page from a third party using javascript. What I need to do is preg_replace or str_replace the output for the purposes of translating a few words (ie days of the week from English to Spanish). Here is an example of the javascript call:
<script language="javascript" src="http://www.example.com/?id=100&site=1&plugin=result_type1&<?= $queryParams ?>">
</script>
The js outputs the results into an html table. Is this something that is even possible? I don't have more code because I wouldn't know how to go about starting something like this.
Any help is appreciated.