Skip to the content

Tobiishi飛び石

Jump pegs on nine native boards, generate seeded solvable challenges and build a peg-solitaire player for your page.

Tobiishi is the Japanese word 飛び石 for stepping stones. About the name

Contents

Reference · SVG boards and materials

escapeXmlfunction

Escapes text for safe inclusion in XML attributes and content.

Import it

import { escapeXml } from "@johnmorrisdotca/tobiishi/draw";

Definition

function escapeXml(value: string): string

Parameters

NameTypeDescription
valuestring

Text to escape for XML attributes or content.

Returns

string

Escapes text for safe inclusion in XML attributes and content.

Examples

import { escapeXml } from "@johnmorrisdotca/tobiishi/draw";

console.log(escapeXml("<peg & hole>"));
&lt;peg &amp; hole&gt;

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/tobiishi 0.3.1.