Vidalia 0.3.1
html.h
Go to the documentation of this file.
1/*
2** This file is part of Vidalia, and is subject to the license terms in the
3** LICENSE file, found in the top level directory of this distribution. If you
4** did not receive the LICENSE file with this file, you may obtain it from the
5** Vidalia source package distributed by the Vidalia Project at
6** http://www.torproject.org/projects/vidalia.html. No part of Vidalia,
7** including this file, may be copied, modified, propagated, or distributed
8** except according to the terms described in the LICENSE file.
9*/
10
11/*
12** \file html.h
13** \brief HTML formatting functions
14*/
15
16#ifndef _HTML_H
17#define _HTML_H
18
19#include <QString>
20
21
22/** Wraps a string in "<p>" tags, converts "\n" to "<br/>" and converts "\n\n"
23 * to a new paragraph. */
24QString p(QString str);
25
26/** Wraps a string in "<i>" tags. */
27QString i(QString str);
28
29/** Wraps a string in "<b>" tags. */
30QString b(QString str);
31
32/** Wraps a string in "<tr>" tags. */
33QString trow(QString str);
34
35/** Wraps a string in "<td>" tags. */
36QString tcol(QString str);
37
38/** Wraps a string in "<th>" tags. */
39QString thead(QString str);
40
41/** Escapes "<" and ">" characters in a string, for html. */
42QString escape(QString str);
43
44#endif
45
QString i(QString str)
Definition: html.cpp:32
QString p(QString str)
Definition: html.cpp:22
QString thead(QString str)
Definition: html.cpp:60
QString trow(QString str)
Definition: html.cpp:46
QString tcol(QString str)
Definition: html.cpp:53
QString escape(QString str)
Definition: html.cpp:67
QString b(QString str)
Definition: html.cpp:39