Hello,
just a little technical problem , i want to use greek letter for physic size and i'm using
(require xml)
i want to use ρ
, instead of rho
so i do:
(regexp-replace #rx"rho" physic "\\ρ")
but now i solved the problem of &
with \\&
in the regular expression ,then, some layer transform &
in &
in the html page:
<html>
<style type="text/css">
table, th, td { border:1px solid black; }
</style>
<head>
<title>
Plot
</title>
</head>
<body>
<h1>
BepiColombo
</h1>
<p>
<center>
<br />
<table>
<tr>
<th>
rhoe (&rho;e)
</th>
</tr>
my code is :
`(html
(style ((type "text/css")) "table, th, td { border:1px solid black; }")
(head (title "Plot"))
(body (h1 "BepiColombo")
(p
(center
(br)
(table
(tr
(th ,(string-append physic " (" physic-greek4html ")")))
where physic-greek4html
is (regexp-replace #rx"rho" physic "\\ρ")
how can i prevent &
to be reinterpreted by the xml
library of Racket?
i want only ρ
in the html source code
Regards,
Damien