C# 클래스 ScrewTurn.Wiki.ReverseFormatter

Implements reverse formatting methods (HTML->WikiMarkup).
파일 보기 프로젝트 열기: mono/ScrewTurnWiki 1 사용 예제들

공개 메소드들

메소드 설명
ReverseFormat ( string html ) : string

Reverse formats HTML content into WikiMarkup.

비공개 메소드들

메소드 설명
BuildListTree ( bool ordered, string html ) : HtmlList

Builds a list tree.

BuildListWikiMarkup ( HtmlList list, string previousBullets ) : string

Builds the WikiMarkup for a list.

FindAnchestor ( HtmlList root, HtmlList current ) : HtmlList

Finds the anchestor of a list in a tree.

FindTagsPair ( StringBuilder sb, string openTag, string closeTag, int startIndex, int &openIndex, int &closeIndex ) : bool

Finds the position of a matched tag pair.

FirstIndexOfAny ( string input, int startIndex, int &stringFound ) : int

Finds the index of the first string.

GetCurrentRequestMainUrl ( ) : string

Gets the current request main URL, such as http://www.server.com/Wiki/.

GetProviderAndFileAndPage ( string rawUrl, string &provider, string &page, string &file ) : void

Gets the provider and file of a link or URL.

PrepareImageUrl ( string rawUrl ) : string

Prepares an image URL.

PrepareLink ( string rawUrl ) : string

Prepares a link URL.

ProcessList ( bool ordered, string html ) : string

Processes an unordered or ordered list.

ProcessLists ( StringBuilder sb ) : void

Processes unordered and ordered lists.

UrlDecode ( string input ) : string

Decodes a URL-encoded string, even if it was encoded multiple times.

It seems that in some cases URL encoding occurs multiple times, one on the server and one on the client.

메소드 상세

ReverseFormat() 공개 정적인 메소드

Reverse formats HTML content into WikiMarkup.
public static ReverseFormat ( string html ) : string
html string The input HTML.
리턴 string