Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script type="text/javascript">
- (function($) {
- var regex = [/\[css\s*=([^"']+?)\]([\s\S]+?)\[\/css\]/gi, /position\s*:(?:[^;:]+?;|[^;:]+$)?/i];
- $('td.c_post').each(function() {
- var $t = $(this),
- html = $t.html(),
- change = false;
- while (regex[0].test(html)) {
- change = true;
- html = html.replace(regex[0], function(f, o, t, p) {
- return '<div style="' + o.replace(regex[1], '') + '">' + t + '</div>';
- });
- }
- if (change)
- $t.html(html);
- });
- })(jQuery);
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement