C# を使用してテキストからすべての MediaWiki マークアップ「コード」を取り除く方法がある場合は?
たとえば、次のテキストがあります。
<h2><span class="editsection">[<a href="/w/index.php?title=Roger_Zelazny&action=edit&section=1" title="Edit section: Biography">edit</a>]</span> <span class="mw-headline" id="Biography">Biography</span></h2>
<p>Roger Zelazny was born in <a href="/wiki/Euclid,_Ohio" title="Euclid, Ohio">Euclid, Ohio</a>, the only child of Polish immigrant Joseph Frank Zelazny and <a href="/wiki/Irish-American" title="Irish-American" class="mw-redirect">Irish-American</a> Josephine Flora Sweet. In high school, he became the editor of the school newspaper and joined the Creative Writing Club.<sup id="cite_ref-Roger_Zelazny_2009_0-0" class="reference">
<a href="#cite_note-Roger_Zelazny_2009-0"><span>[</span>1<span>]</span></a></sup> In the fall of 1955, he began attending <a href="/wiki/Case_Western_Reserve_University" title="Case Western Reserve University">Western Reserve University</a> and graduated with a B.A. in English in 1959.<sup id="cite_ref-Roger_Zelazny_2009_0-1" class="reference"><a href="#cite_note-Roger_Zelazny_2009-0"><span>[</span>1<span>]</span></a></sup> He was accepted to <a href="/wiki/Columbia_University" title="Columbia University">Columbia University</a> in New York and specialized in Elizabethan and Jacobean drama, graduating with an M.A. in 1962.<sup id="cite_ref-Roger_Zelazny_2009_0-2" class="reference">
<a href="#cite_note-Roger_Zelazny_2009-0"><span>[</span>1<span>]</span></a></sup> His M.A. thesis was entitled <i>Two traditions and <a href="/wiki/Cyril_Tourneur" title="Cyril Tourneur">Cyril Tourneur</a>: an examination of morality and humor comedy conventions in</i> <a href="/wiki/The_Revenger%27s_Tragedy" title="The Revenger's Tragedy">The Revenger's Tragedy</a>. Between 1962 and 1969 he worked for the U.S. <a href="/wiki/Social_Security_Administration" title="Social Security Administration">Social Security Administration</a> in <a href="/wiki/Cleveland,_Ohio" title="Cleveland, Ohio" class="mw-redirect">Cleveland, Ohio</a> and then in <a href="/wiki/Baltimore,_Maryland" title="Baltimore, Maryland" class="mw-redirect">Baltimore, Maryland</a> spending his evenings writing science fiction.<sup id="cite_ref-Roger_Zelazny_2009_0-3" class="reference"><a href="#cite_note-Roger_Zelazny_2009-0"><span>[</span>1<span>]</span></a></sup><sup id="cite_ref-AndCall_1-0" class="reference"><a href="#cite_note-AndCall-1"><span>[</span>2<span>]</span></a></sup>
He deliberately progressed from short-shorts to novelettes to novellas and finally to novel-length works by 1965.<sup id="cite_ref-Roger_Zelazny_2009_0-4" class="reference"><a href="#cite_note-Roger_Zelazny_2009-0"><span>[</span>1<span>]</span></a></sup> On May 1, 1969, he quit to become a full-time writer, and thereafter concentrated on writing novels in order to maintain his income.<sup id="cite_ref-AndCall_1-1" class="reference"><a href="#cite_note-AndCall-1"><span>[</span>2<span>]</span></a></sup>
During this period, he was an active and vocal member of the Baltimore Science Fiction Society, whose members included writers <a href="/wiki/Jack_Chalker" title="Jack Chalker" class="mw-redirect">Jack Chalker</a> and <a href="/wiki/Joe_Haldeman" title="Joe Haldeman">Joe</a> and <a href="/wiki/Jack_Haldeman" title="Jack Haldeman" class="mw-redirect">Jack Haldeman</a> among others.</p>
これは、次の Html で表されます。
[編集] 伝記
ロジャー・ゼラズニーは、オハイオ州ユークリッドで、ポーランド移民のジョセフ・フランク・ゼラズニーとアイルランド系アメリカ人のジョセフィン・フローラ・スウィートの一人っ子として生まれました。高校では学校新聞の編集者になり、創作クラブに参加しました。[1] 1955 年の秋、彼はウェスタン リザーブ大学に通い始め、1959 年に英語の学士号を取得して卒業しました。彼はニューヨークのコロンビア大学に入学し、エリザベス朝とジャコビアンの演劇を専門とし、1962 年に修士号を取得しました。[1] 彼の修士論文は「 2 つの伝統とシリル トゥールナー :復讐者の悲劇における道徳とユーモアのコメディー慣習の調査」と題されました。 . 1962年から1969年の間、彼は米国で働いていましたオハイオ州クリーブランドの社会保障局、そしてメリーランド州ボルチモアで夜を過ごしてサイエンス フィクションを書いた[1][2]。彼は意図的に短編小説から中編小説、中編小説へと進歩し、1965 年までに最終的に小説の長さの作品になった [1]。1969年5月1日、彼は専業作家になるために辞め、その後収入を維持するために小説の執筆に専念した[2]。この期間中、彼はボルチモア サイエンス フィクション ソサエティの積極的かつ積極的なメンバーであり、そのメンバーには作家のジャック チョーカー、ジョーとジャック ハルデマンなどが含まれていました。
HTML タグだけでなく、参照、ウィキの「リンク」なども削除する方法を探しています。ウィキペディアによって行われたすべての書式設定と「処理」を削除し、テキストのみを保持したいと考えています。 ...