I want to load dynamic HTML content via AJAX, then compile it, because it contains angular directives.
<!DOCTYPE html>
<html ng-app="app">
<head>| Windows Registry Editor Version 5.00 | |
| [-HKEY_CLASSES_ROOT\Directory\Background\shell\Cmder] | |
| [-HKEY_CLASSES_ROOT\Directory\shell\Cmder] |
| <?php | |
| /** | |
| * Plugin Name: WooCommerce Check Terms & Conditions | |
| * Plugin URI: https://gist.github.com/BFTrick/7789974 | |
| * Description: Make the Terms & Conditions checkbox checked by default | |
| * Author: Patrick Rauland | |
| * Author URI: http://patrickrauland.com/ | |
| * Version: 1.0 | |
| * | |
| * This program is free software: you can redistribute it and/or modify |
| //http://stackoverflow.com/a/1026087/181295 | |
| String.prototype.turkishUpperCase = function () { | |
| return this.replace(/ğ/g, 'Ğ') | |
| .replace(/ü/g, 'Ü') | |
| .replace(/ş/g, 'Ş') | |
| .replace(/ı/g, 'I') | |
| .replace(/i/g, 'İ') | |
| .replace(/ö/g, 'Ö') | |
| .replace(/ç/g, 'Ç') | |
| .toUpperCase(); |
| /* ======================================================================== | |
| * Bootstrap: carousel.js v3.0.0 | |
| * http://twbs.github.com/bootstrap/javascript.html#carousel | |
| * ======================================================================== | |
| * Copyright 2012 Twitter, Inc. | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * |
| String.prototype.slugify = function() | |
| { | |
| var p = ['.', '=', '-']; | |
| var s = '-'; | |
| //now we need to do some fiddling with special characters | |
| var replaceArray = { | |
| 'a': /à|á|å|â/, | |
| 'e': /è|é|ê|ẽ|ë/, | |
| 'i': /ì|í|î/, |
| /** | |
| * Get YouTube ID from various YouTube URL | |
| * @author: takien | |
| * @url: http://takien.com | |
| * For PHP YouTube parser, go here http://takien.com/864 | |
| */ | |
| function YouTubeGetID(url){ | |
| var ID = ''; | |
| url = url.replace(/(>|<)/gi,'').split(/(vi\/|v=|\/v\/|youtu\.be\/|\/embed\/)/); |
| /* | |
| _.move - takes array and moves item at index and moves to another index; great for use with jQuery.sortable() | |
| */ | |
| _.mixin({ | |
| move: function (array, fromIndex, toIndex) { | |
| array.splice(toIndex, 0, array.splice(fromIndex, 1)[0] ); | |
| return array; | |
| } | |
| /** | |
| * Create a web friendly URL slug from a string. | |
| * | |
| * Requires XRegExp (http://xregexp.com) with unicode add-ons for UTF-8 support. | |
| * | |
| * Although supported, transliteration is discouraged because | |
| * 1) most web browsers support UTF-8 characters in URLs | |
| * 2) transliteration causes a loss of information | |
| * | |
| * @author Sean Murphy <[email protected]> |