forked from Archives/Athou_commafeed
keep using the same css parser as before
This commit is contained in:
@@ -20,7 +20,7 @@ import org.w3c.css.sac.InputSource;
|
||||
import org.w3c.dom.css.CSSStyleDeclaration;
|
||||
|
||||
import com.steadystate.css.parser.CSSOMParser;
|
||||
import com.steadystate.css.parser.SACParserCSS3;
|
||||
import com.steadystate.css.parser.SACParserCSS21;
|
||||
|
||||
import jakarta.inject.Singleton;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
@@ -150,7 +150,7 @@ public class FeedEntryContentCleaningService {
|
||||
}
|
||||
|
||||
private CSSOMParser buildCssParser() {
|
||||
CSSOMParser parser = new CSSOMParser(new SACParserCSS3());
|
||||
CSSOMParser parser = new CSSOMParser(new SACParserCSS21());
|
||||
|
||||
parser.setErrorHandler(new ErrorHandler() {
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user