Skip to content

Commit fa66c21

Browse files
committed
refactor(pages): Escape apostrophes and quotes in legal pages
Replaced unescaped apostrophes and double quotes with HTML entities in privacy and terms pages to improve rendering and prevent potential JSX parsing issues.
1 parent 1c97f5e commit fa66c21

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

src/app/(site)/legal/privacy/page.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export default function PrivacyPolicyPage(): React.ReactElement {
2121
<div className="prose prose-neutral dark:prose-invert max-w-none">
2222
<h2>1. Introduction</h2>
2323
<p>
24-
Welcome to Javaistic ("we," "our," or "us"). We are committed to
24+
Welcome to Javaistic (&quot;we,&quot; &quot;our,&quot; or &quot;us&quot;). We are committed to
2525
protecting your privacy and ensuring transparency. This Privacy Policy
2626
explains our practices regarding information handling on our open
2727
source educational platform for learning Java programming.
@@ -69,14 +69,14 @@ export default function PrivacyPolicyPage(): React.ReactElement {
6969
If you choose to contribute to the Javaistic project through our
7070
public GitHub repository, any information you provide (such as GitHub
7171
username, email for commits, or pull request content) will be handled
72-
according to GitHub's privacy policies and our open source licensing
72+
according to GitHub&apos;s privacy policies and our open source licensing
7373
terms.
7474
</p>
7575

7676
<h2>4. How We Use Information</h2>
7777
<p>Any information we may temporarily collect is used only for:</p>
7878
<ul>
79-
<li>Maintaining and improving the website's functionality</li>
79+
<li>Maintaining and improving the website&apos;s functionality</li>
8080
<li>Ensuring platform security and preventing abuse</li>
8181
<li>
8282
Analyzing general usage patterns to improve educational content
@@ -125,11 +125,11 @@ export default function PrivacyPolicyPage(): React.ReactElement {
125125
<li>Open source code allows for community security review</li>
126126
</ul>
127127

128-
<h2>7. Children's Privacy</h2>
128+
<h2>7. Children&apos;s Privacy</h2>
129129
<p>
130130
Javaistic is an educational platform intended for learners of all ages
131131
interested in Java programming. Since we do not collect personal
132-
information, there are no special considerations for children's data.
132+
information, there are no special considerations for children&apos;s data.
133133
However, we recommend that children under 13 have parental guidance
134134
when accessing technical content.
135135
</p>

src/app/(site)/legal/terms/page.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ export default function TermsPage(): React.ReactElement {
2121
<div className="prose prose-neutral dark:prose-invert max-w-none">
2222
<h2>1. Acceptance of Terms</h2>
2323
<p>
24-
By accessing and using Javaistic ("the Platform," "we," "our," or
25-
"us"), an open source educational platform for learning Java
24+
By accessing and using Javaistic (&quot;the Platform,&quot; &quot;we,&quot; &quot;our,&quot; or
25+
&quot;us&quot;), an open source educational platform for learning Java
2626
programming, you accept and agree to be bound by the terms and
27-
provision of this agreement ("Terms of Service" or "Terms"). If you do
27+
provision of this agreement (&quot;Terms of Service&quot; or &quot;Terms&quot;). If you do
2828
not agree to abide by these terms, please do not use this platform.
2929
</p>
3030

@@ -52,7 +52,7 @@ export default function TermsPage(): React.ReactElement {
5252
model. This means:
5353
</p>
5454
<ul>
55-
<li>The platform's source code is publicly available</li>
55+
<li>The platform&apos;s source code is publicly available</li>
5656
<li>
5757
You are free to view, modify, and distribute the code under the
5858
AGPL-3.0 license
@@ -86,7 +86,7 @@ export default function TermsPage(): React.ReactElement {
8686
<li>Upload viruses, malware, or other harmful code</li>
8787
<li>
8888
Post content that is unlawful, harmful, threatening, abusive,
89-
harassing, defamatory, vulgar, obscene, or invasive of another's
89+
harassing, defamatory, vulgar, obscene, or invasive of another&apos;s
9090
privacy
9191
</li>
9292
<li>
@@ -97,7 +97,7 @@ export default function TermsPage(): React.ReactElement {
9797
<h3>4.2 Educational Use</h3>
9898
<p>
9999
The Platform is intended for educational purposes. While we strive to
100-
provide accurate information, all content is provided "as is" for
100+
provide accurate information, all content is provided &quot;as is&quot; for
101101
learning purposes. Users should verify information independently and
102102
use proper judgment when applying concepts learned here.
103103
</p>
@@ -197,7 +197,7 @@ export default function TermsPage(): React.ReactElement {
197197
<h2>8. Disclaimers</h2>
198198
<h3>8.1 Service Availability</h3>
199199
<p>
200-
The Platform is provided on an "as is" and "as available" basis. As an
200+
The Platform is provided on an &quot;as is&quot; and &quot;as available&quot; basis. As an
201201
open source project maintained by volunteers, we do not guarantee that
202202
the Platform will be uninterrupted, timely, secure, or error-free.
203203
</p>

0 commit comments

Comments
 (0)