Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ajaxify cut tags in inline javascript #30

Open
Satariall opened this issue Apr 29, 2014 · 0 comments
Open

Ajaxify cut tags in inline javascript #30

Satariall opened this issue Apr 29, 2014 · 0 comments

Comments

@Satariall
Copy link

I have some pages. They generated inline javascript code from php. For example:

<script>
var someArray = Array();
<?foreach($videos as $num=>$code):?>
 someArray['<?=$num?>'] = '<?=$code?>';
<?endforeach;?>
</script>

$code = iframe html's from youtube (as example).
Actualy they may contain anything as <div><span>text</span></div>

So when page load directly - all work as well.
But when this page load from ajaxify inline script cut all tags in inline javascript.

What i can do for fix them? I see in ajaxify code watch for all open and closed tags, which cut and paste in document-html element and paste to result page. I want to cut inline js first and before that parse html tags. So, i think first stage is cut all around .content element, them parse inline js and after that work with other tags.

Any idea? (sry for bad english). Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant