Skip to content

Commit b0e2c1d

Browse files
committed
Add the regexp that restores HTML video tags for videos
1 parent 7051b5a commit b0e2c1d

File tree

1 file changed

+1
-0
lines changed
  • aztec/src/main/java/org/wordpress/aztec

1 file changed

+1
-0
lines changed

aztec/src/main/java/org/wordpress/aztec/Html.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@ public Spanned convert() {
225225
reader.setContentHandler(this);
226226
try {
227227
reader.setProperty(Parser.lexicalHandlerProperty, this);
228+
source = source.replaceAll("\\[video([^\\]]*)\\]", "<video$1/>");
228229
reader.parse(new InputSource(new StringReader(source)));
229230
} catch (IOException e) {
230231
// We are reading from a string. There should not be IO problems.

0 commit comments

Comments
 (0)