Skip to content

Commit

Permalink
Prevent addition of wrong construction "="" into various tags (#143)
Browse files Browse the repository at this point in the history
  • Loading branch information
vova07 authored Aug 13, 2018
1 parent 6ea9a41 commit f3f0673
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

All notable changes to `yii2-imperavi-widget` will be documented in this file.

## 2.0.6

### Changes
- Prevent addition of wrong construction `"=""` into various tags. (solks)

## 2.0.5

### Changed
Expand Down
4 changes: 2 additions & 2 deletions src/assets/redactor.js
Original file line number Diff line number Diff line change
Expand Up @@ -2108,8 +2108,8 @@
html = html.replace(new RegExp('</li><br\\s?/?>', 'gi'), '</li>');

// remove empty attributes
html = html.replace(/<(.*?)rel="\s*?"(.*?[^>]?)>/gi, '<$1$2">');
html = html.replace(/<(.*?)style="\s*?"(.*?[^>]?)>/gi, '<$1$2">');
html = html.replace(/<(.*?)rel="\s*?"(.*?[^>]?)>/gi, '<$1$2>');
html = html.replace(/<(.*?)style="\s*?"(.*?[^>]?)>/gi, '<$1$2>');
html = html.replace(/="">/gi, '>');
html = html.replace(/""">/gi, '">');
html = html.replace(/"">/gi, '">');
Expand Down
2 changes: 1 addition & 1 deletion src/assets/redactor.min.js

Large diffs are not rendered by default.

0 comments on commit f3f0673

Please sign in to comment.