Removing HCl from water I have water contaminated with dissolved chlorine:

$\ce{H2O + Cl2 &lt;=&gt;HCl + HOCl}$

During electrolysis, this is an issue. These are my products:

$\ce{NaCl + H2O -&gt;T[electrolysis] NaOH + Cl2 + O2 + H2 }$

However, $\ce{NaOH}$ will be neutralised by $\ce{HCl}$:

$\ce{NaOH + HCl-&gt; NaCl + H2O}$

I guess this can be considered hydrochloric acid. I want to remove the chlorine ions from water and prevent future dissolving.

Does increasing temperature help to remove the chlorine? Does boiling make the chlorine leave the mixture?

$\ce{H2O + HCl + HOCl -&gt;T[???] H2O + Cl2(gas)}$

PS.: I understand that there are means of separating the electrolysis columns. But this question is really about removing $\ce{Cl2}$ or $\ce{HCl}$ from aqueous solution.
1) Do NOT heat the solution, if you want chlorine out. Electrolysis of hot $\ce{NaCl}$ solution produces $\ce{NaClO3}$, then $\ce{NaClO4}$, not chlorine. You apparantly don't want this.

2) traditionally, in such setups some barrier between cathode and anode spaces is used. The easiest one would be unglazed ceramic pot (with no holes and no direct contact of anode and cathode solutions), though I'm not sure if it will work with chlorine ions. It is recommended to perform electrolisys of $\ce{MgSO4}$ solution first. In this case chlorine ions would migrate from cathode space. With barrier introduced you may expect chlorine to evolve from anode space and sodium hydroxide to accumulate in cathode space.

3) do NOT blow air atop sodium hydroxide solution. It reacts with $\ce{CO2}$ from air.