We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 41611
    • 7 Posts
    Hello,
    I've just stumbled upon a problem i can't resolve

    I really need to display output from a snippet which looks like this:
    function onLoad(){/* */
    }  var desArr = [['Albania',[['3269:','Albania'],['3269_4277','Riwiera Albañska',8227],['3269_38862','Wybrze¿e Joñskie ',8227],['3269_3075','Wyc. Objazdowe',36]],8231],


    But MODx is cutting everything between brackets and tries to parse that.

    Also, this is data grabbed via cURL, so this solution won't work:
    http://www.modx360.com/blog/2010/02/12/prevent-parsing-modx-tags/

    If someone has any idea, help would be very appreciated wink

    This question has been answered by morelmm. See the first response.

    • discuss.answer
      • 41611
      • 7 Posts
      Phew, done with a small plugin replacing content OnWebPagePrerender wink


      <?php
      $output = &$modx->resource->_output;
      $output = str_replace('</body>',$footer.'</body>',$output);