scribe-plugin-sanitizer

WebJar for scribe-plugin-sanitizer

Лицензия

Лицензия

Apache 2.0
Группа

Группа

org.webjars.bower
Идентификатор

Идентификатор

scribe-plugin-sanitizer
Последняя версия

Последняя версия

0.1.10
Дата

Дата

Тип

Тип

jar
Описание

Описание

scribe-plugin-sanitizer
WebJar for scribe-plugin-sanitizer
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

https://github.com/guardian/scribe-plugin-sanitizer

Скачать scribe-plugin-sanitizer

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.webjars.bower/scribe-plugin-sanitizer/ -->
<dependency>
    <groupId>org.webjars.bower</groupId>
    <artifactId>scribe-plugin-sanitizer</artifactId>
    <version>0.1.10</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.bower/scribe-plugin-sanitizer/
implementation 'org.webjars.bower:scribe-plugin-sanitizer:0.1.10'
// https://jarcasting.com/artifacts/org.webjars.bower/scribe-plugin-sanitizer/
implementation ("org.webjars.bower:scribe-plugin-sanitizer:0.1.10")
'org.webjars.bower:scribe-plugin-sanitizer:jar:0.1.10'
<dependency org="org.webjars.bower" name="scribe-plugin-sanitizer" rev="0.1.10">
  <artifact name="scribe-plugin-sanitizer" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.bower', module='scribe-plugin-sanitizer', version='0.1.10')
)
libraryDependencies += "org.webjars.bower" % "scribe-plugin-sanitizer" % "0.1.10"
[org.webjars.bower/scribe-plugin-sanitizer "0.1.10"]

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

Модули Проекта

Данный проект не имеет модулей.

scribe-plugin-sanitizer

**NB: this project is no longer distributed over Bower. Please use npm for future versions

Installation

bower install scribe-plugin-sanitizer

Usage Example

scribe-plugin-sanitizer is an AMD module:

require(['scribe', 'scribe-plugin-sanitizer'], function (Scribe, scribePluginSanitizer) {
  var scribeElement = document.querySelector('.scribe');
  var scribe = new Scribe(scribeElement);
  scribe.use(scribePluginSanitizer({
    tags: {
      p: true,
      a: {
        href: true,
        target: '_blank'
      }
    }
  }));
});

It uses the same format of options as html-janitor. To whitelist a tag, specify true for it. To whitelist specific attributes or even specific values, use an object.

org.webjars.bower

The Guardian

The source code of the world's leading liberal voice

Версии библиотеки

Версия
0.1.10